Skip to content

Commit 839e6f7

Browse files
authored
Use separate targets for security enabled tests (opensearch-project#113)
Signed-off-by: Chenyang Ji <cyji@amazon.com>
1 parent 4d896cc commit 839e6f7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build.gradle

+3-4
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,8 @@ integTest {
271271
jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005'
272272
}
273273
if (System.getProperty("security.enabled") == "true" || System.getProperty("https") == "true") {
274-
// Exclude this IT, because they executed in another task (:integTestWithSecurity)
275-
exclude 'org/opensearch/plugin/insights/rules/resthandler/top_queries/TopQueriesRestIT.class'
276-
exclude 'org/opensearch/plugin/insights/core/exporter/QueryInsightsExporterIT.class'
274+
// Exclude the ITs when security is enabled, because they executed in another task (:integTestWithSecurity)
275+
exclude 'org/opensearch/plugin/insights/**/*IT.class'
277276
}
278277
}
279278

@@ -345,7 +344,7 @@ task integTestWithSecurity(type: RestIntegTestTask) {
345344
}
346345

347346
filter {
348-
includeTestsMatching 'org.opensearch.plugin.insights.rules.resthandler.top_queries.TopQueriesRestIT'
347+
includeTestsMatching 'org.opensearch.plugin.insights.*IT'
349348
}
350349
}
351350

0 commit comments

Comments
 (0)