Skip to content

Commit

Permalink
skip index handler integ tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jackie Han <[email protected]>
  • Loading branch information
jackiehanyang committed Sep 22, 2023
1 parent 2069fb2 commit a4d052e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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'
Expand Down

0 comments on commit a4d052e

Please sign in to comment.