From a4d052e75adc53710b21cda54aed860b056e5061 Mon Sep 17 00:00:00 2001 From: Jackie Han Date: Fri, 22 Sep 2023 15:12:34 -0700 Subject: [PATCH] skip index handler integ tests Signed-off-by: Jackie Han --- build.gradle | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/build.gradle b/build.gradle index 748757484..99170b22a 100644 --- a/build.gradle +++ b/build.gradle @@ -117,8 +117,12 @@ dependencies { test { include '**/*Tests.class' + systemProperty 'tests.security.manager', 'false' } +def opensearch_tmp_dir = rootProject.file('build/private/opensearch_tmp').absoluteFile +opensearch_tmp_dir.mkdirs() + jacocoTestReport { dependsOn test reports { @@ -135,6 +139,29 @@ task integTest(type: RestIntegTestTask) { tasks.named("check").configure { dependsOn(integTest) } integTest { + dependsOn "bundlePlugin" + systemProperty 'tests.security.manager', 'false' + systemProperty 'java.io.tmpdir', opensearch_tmp_dir.absolutePath + systemProperty "https", System.getProperty("https") + systemProperty "user", System.getProperty("user") + systemProperty "password", System.getProperty("password") + +// // Only rest case can run with remote cluster +// if (System.getProperty("tests.rest.cluster") != null) { +// filter { +// includeTestsMatching "org.opensearch.flowframework.rest.*IT" +// } +// } +// +// if (System.getProperty("https") == null || System.getProperty("https") == "false") { +// filter { +// } +// } + + filter { + excludeTestsMatching "org.opensearch.flowframework.indices.*Tests" + } + // The --debug-jvm command-line option makes the cluster debuggable; this makes the tests debuggable if (System.getProperty("test.debug") != null) { jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005'