From cf50029caa6cee10c8388c9b6c9fa948a7212fb4 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 18:27:33 -0700 Subject: [PATCH] Disabled non-security tests from executing during security-enabled CI workflows. (#1632) (#1633) * Disabled non-security tests from executing during security-enabled CI workflows. * Disabled non-security tests from executing during security-enabled CI workflows. * Disabled non-security tests from executing during security-enabled CI workflows. --------- (cherry picked from commit 50df588c622e2f5d6f1bc592764a6d041f813d7d) Signed-off-by: AWSHurneyt Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- sample-remote-monitor-plugin/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sample-remote-monitor-plugin/build.gradle b/sample-remote-monitor-plugin/build.gradle index e1d38dbea..03493b915 100644 --- a/sample-remote-monitor-plugin/build.gradle +++ b/sample-remote-monitor-plugin/build.gradle @@ -69,6 +69,12 @@ task integTest(type: RestIntegTestTask) { description = "Run tests against a cluster" testClassesDirs = sourceSets.test.output.classesDirs classpath = sourceSets.test.runtimeClasspath + + if (System.getProperty("https") == null || System.getProperty("https") == "false") { + filter { + includeTestsMatching "org.opensearch.alerting.SampleRemoteMonitorIT" + } + } } tasks.named("check").configure { dependsOn(integTest) }