From d7b8a4b80c23302de810a739b2de9d7ebd77da51 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 1 Aug 2024 23:18:26 +0000 Subject: [PATCH] Disabled non-security tests from executing during security-enabled CI workflows. (#1632) * Disabled non-security tests from executing during security-enabled CI workflows. Signed-off-by: AWSHurneyt * Disabled non-security tests from executing during security-enabled CI workflows. Signed-off-by: AWSHurneyt * Disabled non-security tests from executing during security-enabled CI workflows. Signed-off-by: AWSHurneyt --------- Signed-off-by: AWSHurneyt (cherry picked from commit 50df588c622e2f5d6f1bc592764a6d041f813d7d) Signed-off-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) }