From 78322d9dc7c183c495a56dab74307df47824e612 Mon Sep 17 00:00:00 2001 From: Jinlin Zhang Date: Mon, 9 Oct 2023 20:29:45 -0700 Subject: [PATCH 1/2] Changed @Ignore to @AwaitsFix Signed-off-by: Jinlin Zhang --- .../alerting/resthandler/SecureWorkflowRestApiIT.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 bad2f913b..753ddea5a 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/resthandler/SecureWorkflowRestApiIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/resthandler/SecureWorkflowRestApiIT.kt @@ -9,10 +9,10 @@ import org.apache.hc.core5.http.ContentType import org.apache.hc.core5.http.HttpHeaders import org.apache.hc.core5.http.io.entity.StringEntity import org.apache.hc.core5.http.message.BasicHeader +import org.apache.lucene.tests.util.LuceneTestCase.AwaitsFix import org.junit.After import org.junit.Before import org.junit.BeforeClass -import org.junit.Ignore import org.opensearch.alerting.ALERTING_BASE_URI import org.opensearch.alerting.ALERTING_DELETE_WORKFLOW_ACCESS import org.opensearch.alerting.ALERTING_EXECUTE_WORKFLOW_ACCESS @@ -63,7 +63,7 @@ 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 -@Ignore +@AwaitsFix(bugUrl = "Replace with issue URL") @TestLogging("level:DEBUG", reason = "Debug for tests.") @Suppress("UNCHECKED_CAST") class SecureWorkflowRestApiIT : AlertingRestTestCase() { From 2f6f1bf0a332c9ba1853f7d973fe7931174664cc Mon Sep 17 00:00:00 2001 From: Jinlin Zhang Date: Tue, 10 Oct 2023 13:09:17 -0700 Subject: [PATCH 2/2] added bugUrl Signed-off-by: Jinlin Zhang --- .../opensearch/alerting/resthandler/SecureWorkflowRestApiIT.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 753ddea5a..c0e6762e7 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/resthandler/SecureWorkflowRestApiIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/resthandler/SecureWorkflowRestApiIT.kt @@ -63,7 +63,7 @@ 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 = "Replace with issue URL") +@AwaitsFix(bugUrl = "https://github.com/opensearch-project/alerting/issues/1246") @TestLogging("level:DEBUG", reason = "Debug for tests.") @Suppress("UNCHECKED_CAST") class SecureWorkflowRestApiIT : AlertingRestTestCase() {