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) }