From cc0b1507274cc8e09d4650dc2be65329d1dcf1ed Mon Sep 17 00:00:00 2001 From: Kenny Zhang <122967787+kennyzhang0819@users.noreply.github.com> Date: Fri, 13 Oct 2023 11:30:46 -0700 Subject: [PATCH] Changed @Ignore to @AwaitsFix (#1245) * Changed @Ignore to @AwaitsFix Signed-off-by: Jinlin Zhang * added bugUrl Signed-off-by: Jinlin Zhang --------- Signed-off-by: Jinlin Zhang --- .../opensearch/alerting/resthandler/SecureWorkflowRestApiIT.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/resthandler/SecureWorkflowRestApiIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/resthandler/SecureWorkflowRestApiIT.kt index 0a11e57de..b13ac13a4 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/resthandler/SecureWorkflowRestApiIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/resthandler/SecureWorkflowRestApiIT.kt @@ -9,6 +9,7 @@ import org.apache.http.HttpHeaders import org.apache.http.entity.ContentType import org.apache.http.message.BasicHeader import org.apache.http.nio.entity.NStringEntity +import org.apache.lucene.tests.util.LuceneTestCase.AwaitsFix import org.junit.After import org.junit.Before import org.junit.BeforeClass @@ -61,6 +62,8 @@ import org.opensearch.search.builder.SearchSourceBuilder import org.opensearch.test.junit.annotations.TestLogging import java.time.Instant +// TODO investigate flaky nature of tests. not reproducible in local but fails in jenkins CI +@AwaitsFix(bugUrl = "https://github.com/opensearch-project/alerting/issues/1246") @TestLogging("level:DEBUG", reason = "Debug for tests.") @Suppress("UNCHECKED_CAST") class SecureWorkflowRestApiIT : AlertingRestTestCase() {