Skip to content

Commit b1418df

Browse files
committed
Skip delete .plugins-ml-config system index during integ test
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
1 parent 89fc267 commit b1418df

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/testFixtures/java/org/opensearch/knn/ODFERestTestCase.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
import static org.opensearch.knn.TestUtils.KNN_BWC_PREFIX;
5353
import static org.opensearch.knn.TestUtils.OPENDISTRO_SECURITY;
5454
import static org.opensearch.knn.TestUtils.OPENSEARCH_SYSTEM_INDEX_PREFIX;
55+
import static org.opensearch.knn.TestUtils.PLUGINS_ML_CONFIG_INDEX_NAME;
5556
import static org.opensearch.knn.TestUtils.SECURITY_AUDITLOG_PREFIX;
5657
import static org.opensearch.knn.TestUtils.SKIP_DELETE_MODEL_INDEX;
5758
import static org.opensearch.knn.common.KNNConstants.MODELS;
@@ -212,6 +213,7 @@ private boolean skipDeleteIndex(String indexName) {
212213
return indexName == null
213214
|| OPENDISTRO_SECURITY.equals(indexName)
214215
|| IMMUTABLE_INDEX_PREFIXES.stream().anyMatch(indexName::startsWith)
215-
|| MODEL_INDEX_NAME.equals(indexName);
216+
|| MODEL_INDEX_NAME.equals(indexName)
217+
|| PLUGINS_ML_CONFIG_INDEX_NAME.equals(indexName);
216218
}
217219
}

src/testFixtures/java/org/opensearch/knn/TestUtils.java

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public class TestUtils {
9999
public static final String UPGRADED_CLUSTER = "upgraded_cluster";
100100
public static final String SECURITY_AUDITLOG_PREFIX = "security-auditlog";
101101
public static final String OPENSEARCH_SYSTEM_INDEX_PREFIX = ".opensearch";
102+
public static final String PLUGINS_ML_CONFIG_INDEX_NAME = ".plugins-ml-config";
102103

103104
// Generating vectors using random function with a seed which makes these vectors standard and generate same vectors for each run.
104105
public static float[][] randomlyGenerateStandardVectors(int numVectors, int dimensions, int seed) {

0 commit comments

Comments
 (0)