Skip to content

Commit

Permalink
Disabled non-security tests from executing during security-enabled CI…
Browse files Browse the repository at this point in the history
… workflows.

Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Aug 1, 2024
1 parent 0d71fc2 commit 45cfc77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sample-remote-monitor-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 45cfc77

Please sign in to comment.