48 lines
1.3 KiB
Groovy
48 lines
1.3 KiB
Groovy
import org.elasticsearch.gradle.info.BuildParams
|
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
dependencies {
|
|
testCompile project(':x-pack:qa')
|
|
}
|
|
|
|
restResources {
|
|
restTests {
|
|
includeCore '*'
|
|
}
|
|
}
|
|
|
|
integTest {
|
|
runner {
|
|
systemProperty 'tests.rest.blacklist',
|
|
[
|
|
'index/10_with_id/Index with ID',
|
|
'indices.get_alias/10_basic/Get alias against closed indices'
|
|
].join(',')
|
|
|
|
systemProperty 'tests.rest.cluster.username', System.getProperty('tests.rest.cluster.username', 'test_user')
|
|
systemProperty 'tests.rest.cluster.password', System.getProperty('tests.rest.cluster.password', 'x-pack-test-password')
|
|
}
|
|
}
|
|
|
|
testClusters.integTest {
|
|
testDistribution = 'DEFAULT'
|
|
setting 'xpack.ilm.enabled', 'false'
|
|
setting 'xpack.security.enabled', 'true'
|
|
setting 'xpack.watcher.enabled', 'false'
|
|
setting 'xpack.monitoring.enabled', 'false'
|
|
setting 'xpack.ml.enabled', 'false'
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
|
|
user username: System.getProperty('tests.rest.cluster.username', 'test_user'),
|
|
password: System.getProperty('tests.rest.cluster.password', 'x-pack-test-password')
|
|
}
|
|
|
|
testClusters.integTest {
|
|
if (BuildParams.isSnapshotBuild() == false) {
|
|
systemProperty 'es.itv2_feature_flag_registered', 'true'
|
|
}
|
|
}
|