From 60d4bb039404e340efeb22577dd3c97669741c00 Mon Sep 17 00:00:00 2001 From: bowenlan-amzn Date: Sun, 1 Oct 2023 10:29:09 -0700 Subject: [PATCH] debug bwc Signed-off-by: bowenlan-amzn --- .../bwc/IndexManagementBackwardsCompatibilityIT.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/kotlin/org/opensearch/indexmanagement/bwc/IndexManagementBackwardsCompatibilityIT.kt b/src/test/kotlin/org/opensearch/indexmanagement/bwc/IndexManagementBackwardsCompatibilityIT.kt index 8105a4b5f..ae3acdf79 100644 --- a/src/test/kotlin/org/opensearch/indexmanagement/bwc/IndexManagementBackwardsCompatibilityIT.kt +++ b/src/test/kotlin/org/opensearch/indexmanagement/bwc/IndexManagementBackwardsCompatibilityIT.kt @@ -19,6 +19,7 @@ import org.opensearch.indexmanagement.makeRequest import org.opensearch.indexmanagement.opensearchapi.string import org.opensearch.indexmanagement.util.NO_ID import org.opensearch.core.rest.RestStatus +import org.opensearch.indexmanagement.waitFor import org.opensearch.search.builder.SearchSourceBuilder class IndexManagementBackwardsCompatibilityIT : IndexManagementRestTestCase() { @@ -59,7 +60,9 @@ class IndexManagementBackwardsCompatibilityIT : IndexManagementRestTestCase() { createBasicPolicy() verifyPolicyExists(LEGACY_POLICY_BASE_URI) - verifyPolicyOnIndex(LEGACY_ISM_BASE_URI) + waitFor { + verifyPolicyOnIndex(LEGACY_ISM_BASE_URI) + } } ClusterType.MIXED -> { assertTrue(pluginNames.contains("opensearch-index-management"))