diff --git a/src/test/java/org/opensearch/knn/index/RestoreSnapshotIT.java b/src/test/java/org/opensearch/knn/index/RestoreSnapshotIT.java index a2c48a221..a514009ea 100644 --- a/src/test/java/org/opensearch/knn/index/RestoreSnapshotIT.java +++ b/src/test/java/org/opensearch/knn/index/RestoreSnapshotIT.java @@ -5,6 +5,7 @@ package org.opensearch.knn.index; +import org.junit.Ignore; import org.opensearch.client.Request; import org.opensearch.client.Response; import org.opensearch.client.ResponseException; @@ -16,6 +17,7 @@ import lombok.SneakyThrows; import static org.hamcrest.Matchers.containsString; +@Ignore public class RestoreSnapshotIT extends KNNRestTestCase { private String index = "test-index";; @@ -29,6 +31,7 @@ public void setUp() { setupSnapshotRestore(index, snapshot, repository); } + @AwaitsFix(bugUrl = "https://github.com/opensearch-project/k-NN/issues/2458") @Test @SneakyThrows public void testKnnSettingIsModifiable_whenRestore_thenSuccess() { @@ -51,6 +54,7 @@ public void testKnnSettingIsModifiable_whenRestore_thenSuccess() { assertEquals(200, restoreResponse.getStatusLine().getStatusCode()); } + @AwaitsFix(bugUrl = "https://github.com/opensearch-project/k-NN/issues/2458") @Test @SneakyThrows public void testKnnSettingIsUnmodifiable_whenRestore_thenFailure() { @@ -72,6 +76,7 @@ public void testKnnSettingIsUnmodifiable_whenRestore_thenFailure() { assertThat(error.getMessage(), containsString("cannot modify UnmodifiableOnRestore setting [index.knn]" + " on restore")); } + @AwaitsFix(bugUrl = "https://github.com/opensearch-project/k-NN/issues/2458") @Test @SneakyThrows public void testKnnSettingCanBeIgnored_whenRestore_thenSuccess() { @@ -89,6 +94,7 @@ public void testKnnSettingCanBeIgnored_whenRestore_thenSuccess() { assertEquals(200, restoreResponse.getStatusLine().getStatusCode()); } + @AwaitsFix(bugUrl = "https://github.com/opensearch-project/k-NN/issues/2458") @Test @SneakyThrows public void testKnnSettingCannotBeIgnored_whenRestore_thenFailure() {