2020-05-22 11:49:36 -04:00
|
|
|
description = 'Integration tests for SQL JDBC driver'
|
|
|
|
apply plugin: 'elasticsearch.build'
|
|
|
|
|
|
|
|
// Avoid circular dependency
|
|
|
|
group = "org.elasticsearch.x-pack.qa.sql.jdbc"
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-30 09:57:41 -04:00
|
|
|
api project(":test:framework")
|
2020-05-22 11:49:36 -04:00
|
|
|
|
|
|
|
// JDBC testing dependencies
|
2020-06-30 09:57:41 -04:00
|
|
|
api project(path: xpackModule('sql:jdbc'))
|
2020-05-22 11:49:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* disable unit tests because these are all integration tests used
|
|
|
|
* other qa projects. */
|
|
|
|
test.enabled = false
|
|
|
|
|
2020-06-18 02:15:50 -04:00
|
|
|
tasks.named("dependencyLicenses").configure { it.enabled = false }
|
2020-05-22 11:49:36 -04:00
|
|
|
dependenciesInfo.enabled = false
|
|
|
|
|
|
|
|
// the main files are actually test files, so use the appropriate forbidden api sigs
|
|
|
|
tasks.named('forbiddenApisMain').configure {
|
|
|
|
replaceSignatureFiles 'es-all-signatures', 'es-test-signatures'
|
|
|
|
}
|
|
|
|
|
|
|
|
// just a test fixture: we aren't using this jars in releases and H2GIS requires disabling a lot of checks
|
|
|
|
thirdPartyAudit.enabled = false
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
if (subprojects.isEmpty()) {
|
|
|
|
// leaf project
|
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
|
|
} else {
|
|
|
|
apply plugin: 'elasticsearch.build'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
/* Since we're a standalone rest test we actually get transitive
|
|
|
|
* dependencies but we don't really want them because they cause
|
|
|
|
* all kinds of trouble with the jar hell checks. So we suppress
|
|
|
|
* them explicitly for non-es projects. */
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation(xpackProject('plugin:sql:qa:jdbc')) {
|
2020-05-22 11:49:36 -04:00
|
|
|
transitive = false
|
|
|
|
}
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(":test:framework")
|
2020-05-22 11:49:36 -04:00
|
|
|
|
2020-07-07 11:10:31 -04:00
|
|
|
testRuntimeOnly project(path: xpackModule('sql:jdbc'))
|
2020-05-22 11:49:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
if (project.name != 'security') {
|
|
|
|
// The security project just configures its subprojects
|
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
testClusters.integTest {
|
|
|
|
testDistribution = 'DEFAULT'
|
|
|
|
setting 'xpack.ml.enabled', 'false'
|
|
|
|
setting 'xpack.watcher.enabled', 'false'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|