Skip to content

Commit

Permalink
Add integTestRemote for sql (#327)
Browse files Browse the repository at this point in the history
* Add integTestRemote for sql

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Remove unused comment

Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 authored Dec 13, 2021
1 parent fff7588 commit 251ddd3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions integ-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,36 @@ task compileJdbc(type:Exec) {
commandLine './gradlew', 'shadowJar'
}
}

def opensearch_tmp_dir = rootProject.file('build/private/es_tmp').absoluteFile
opensearch_tmp_dir.mkdirs()

task integTestRemote(type: RestIntegTestTask) {
testClassesDirs = sourceSets.test.output.classesDirs
classpath = sourceSets.test.runtimeClasspath
systemProperty 'tests.security.manager', 'false'
systemProperty('project.root', project.projectDir.absolutePath)
systemProperty 'java.io.tmpdir', opensearch_tmp_dir.absolutePath

systemProperty "https", System.getProperty("https")
systemProperty "user", System.getProperty("user")
systemProperty "password", System.getProperty("password")

// Set default query size limit
systemProperty 'defaultQuerySizeLimit', '10000'

if (System.getProperty("tests.rest.bwcsuite") == null) {
filter {
excludeTestsMatching "org.opensearch.sql.bwc.*IT"
}
}

// Exclude the same tests that are excluded for integTest
exclude 'org/opensearch/sql/doctest/**/*IT.class'
exclude 'org/opensearch/sql/correctness/**'
exclude 'org/opensearch/sql/legacy/ExplainIT.class'
exclude 'org/opensearch/sql/legacy/PrettyFormatterIT.class'
exclude 'org/opensearch/sql/legacy/TermQueryExplainIT.class'
exclude 'org/opensearch/sql/legacy/QueryAnalysisIT.class'
exclude 'org/opensearch/sql/legacy/OrderIT.class'
}

0 comments on commit 251ddd3

Please sign in to comment.