From 45cfc7748f7b320d9f28285ed817dd26c5a13a9a Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Thu, 1 Aug 2024 13:10:25 -0700 Subject: [PATCH] Disabled non-security tests from executing during security-enabled CI workflows. Signed-off-by: AWSHurneyt --- sample-remote-monitor-plugin/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sample-remote-monitor-plugin/build.gradle b/sample-remote-monitor-plugin/build.gradle index 703c61c87..2a6542c46 100644 --- a/sample-remote-monitor-plugin/build.gradle +++ b/sample-remote-monitor-plugin/build.gradle @@ -70,7 +70,11 @@ task integTest(type: RestIntegTestTask) { testClassesDirs = sourceSets.test.output.classesDirs classpath = sourceSets.test.runtimeClasspath - if (System.getProperty("https") != null || System.getProperty("https") != "false") { + if (System.getProperty("https") == null || System.getProperty("https") == "false") { + filter { + includeTestsMatching '**/*IT.class' + } + } else { filter { excludeTestsMatching "org.opensearch.alerting.SampleRemoteMonitorIT" }