From 00b6bd3c943acc624c8b03cd4a025b671b98e51f Mon Sep 17 00:00:00 2001 From: Joshua Au Date: Sun, 17 Dec 2023 23:27:47 -0500 Subject: [PATCH] Removed policy from index to fix flaky tests Signed-off-by: Joshua Au --- .../indexstatemanagement/resthandler/RestExplainActionIT.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/resthandler/RestExplainActionIT.kt b/src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/resthandler/RestExplainActionIT.kt index c63c1b628..5c91f9364 100644 --- a/src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/resthandler/RestExplainActionIT.kt +++ b/src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/resthandler/RestExplainActionIT.kt @@ -497,6 +497,9 @@ class RestExplainActionIT : IndexStateManagementRestTestCase() { resp.asMap(), false ) } + + removePolicyFromIndex(indexName1) + removePolicyFromIndex(indexName2) } fun `test explain filter failed index`() { @@ -601,6 +604,9 @@ class RestExplainActionIT : IndexStateManagementRestTestCase() { resp.asMap(), false ) } + + removePolicyFromIndex(indexName1) + removePolicyFromIndex(indexName2) } @Suppress("UNCHECKED_CAST") // Do assertion of the response map here so we don't have many places to do suppression.