From 5b77d88846a86940b558066eee110ef050b79e95 Mon Sep 17 00:00:00 2001 From: Chenyang Ji Date: Mon, 9 Sep 2024 17:32:35 -0700 Subject: [PATCH] Use separate targets for security enabled tests Signed-off-by: Chenyang Ji --- build.gradle | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 2286caf..454a75e 100644 --- a/build.gradle +++ b/build.gradle @@ -271,9 +271,8 @@ integTest { jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005' } if (System.getProperty("security.enabled") == "true" || System.getProperty("https") == "true") { - // Exclude this IT, because they executed in another task (:integTestWithSecurity) - exclude 'org/opensearch/plugin/insights/rules/resthandler/top_queries/TopQueriesRestIT.class' - exclude 'org/opensearch/plugin/insights/core/exporter/QueryInsightsExporterIT.class' + // Exclude the ITs when security is enabled, because they executed in another task (:integTestWithSecurity) + exclude 'org/opensearch/plugin/insights/**/*IT.class' } } @@ -345,7 +344,7 @@ task integTestWithSecurity(type: RestIntegTestTask) { } filter { - includeTestsMatching 'org.opensearch.plugin.insights.rules.resthandler.top_queries.TopQueriesRestIT' + includeTestsMatching 'org.opensearch.plugin.insights.*IT' } }