2019-07-01 03:38:56 -04:00
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
2017-01-04 14:27:53 -05:00
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
2016-07-13 10:08:13 -04:00
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(':x-pack:qa')
|
2017-01-09 04:41:48 -05:00
|
|
|
}
|
|
|
|
|
2020-02-26 16:57:10 -05:00
|
|
|
configurations {
|
|
|
|
testArtifacts.extendsFrom testRuntime
|
2020-06-14 16:30:44 -04:00
|
|
|
testArtifacts.extendsFrom testImplementation
|
2020-02-26 16:57:10 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
task testJar(type: Jar) {
|
|
|
|
appendix 'test'
|
|
|
|
from sourceSets.test.output
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
testArtifacts testJar
|
2020-03-19 13:29:36 -04:00
|
|
|
restXpackTests(new File(projectDir, "src/test/resources/rest-api-spec/test"))
|
2020-02-26 16:57:10 -05:00
|
|
|
}
|
|
|
|
|
2020-02-26 09:13:41 -05:00
|
|
|
restResources {
|
|
|
|
restApi {
|
2020-04-17 15:04:17 -04:00
|
|
|
includeCore '_common', 'cluster', 'nodes', 'search', 'get', 'indices',
|
2020-03-19 13:28:59 -04:00
|
|
|
'index', 'put_script', 'ingest', 'count'
|
2020-02-26 16:57:10 -05:00
|
|
|
includeXpack 'watcher', 'xpack'
|
2020-02-26 09:13:41 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-01 03:38:56 -04:00
|
|
|
testClusters.integTest {
|
2019-07-15 20:53:05 -04:00
|
|
|
testDistribution = 'DEFAULT'
|
2017-02-22 03:56:52 -05:00
|
|
|
setting 'xpack.security.enabled', 'false'
|
2017-03-02 12:01:05 -05:00
|
|
|
setting 'xpack.ml.enabled', 'false'
|
2018-02-12 14:57:04 -05:00
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
2018-02-12 10:03:02 -05:00
|
|
|
setting 'logger.org.elasticsearch.xpack.watcher', 'DEBUG'
|
2019-11-14 06:01:23 -05:00
|
|
|
}
|