2017-01-04 14:27:53 -05:00
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
2015-11-24 03:45:06 -05:00
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2019-04-15 13:14:43 -04:00
|
|
|
testCompile project(':x-pack:qa')
|
2015-11-24 03:45:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
integTest {
|
2018-02-23 11:03:17 -05:00
|
|
|
includePackaged = true
|
2017-02-22 03:56:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
integTestRunner {
|
2015-12-03 14:56:12 -05:00
|
|
|
systemProperty 'tests.rest.blacklist',
|
2018-07-20 03:23:32 -04:00
|
|
|
[
|
2015-11-24 03:45:06 -05:00
|
|
|
'index/10_with_id/Index with ID',
|
2018-07-20 03:23:32 -04:00
|
|
|
'indices.get_alias/10_basic/Get alias against closed indices'
|
2016-09-20 06:05:21 -04:00
|
|
|
].join(',')
|
2018-06-11 16:53:40 -04:00
|
|
|
|
|
|
|
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')
|
2017-02-22 03:56:52 -05:00
|
|
|
}
|
2015-11-24 03:45:06 -05:00
|
|
|
|
2017-02-22 03:56:52 -05:00
|
|
|
integTestCluster {
|
2018-08-02 13:05:11 -04:00
|
|
|
setting 'xpack.ilm.enabled', 'false'
|
2018-03-21 23:09:44 -04:00
|
|
|
setting 'xpack.security.enabled', 'true'
|
2017-02-22 03:56:52 -05:00
|
|
|
setting 'xpack.watcher.enabled', 'false'
|
|
|
|
setting 'xpack.monitoring.enabled', 'false'
|
2017-03-02 12:01:05 -05:00
|
|
|
setting 'xpack.ml.enabled', 'false'
|
2018-03-20 14:21:07 -04:00
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
2017-02-22 03:56:52 -05:00
|
|
|
setupCommand 'setupDummyUser',
|
2018-06-11 16:53:40 -04:00
|
|
|
'bin/elasticsearch-users',
|
|
|
|
'useradd', System.getProperty('tests.rest.cluster.username', 'test_user'),
|
|
|
|
'-p', System.getProperty('tests.rest.cluster.password', 'x-pack-test-password'),
|
|
|
|
'-r', 'superuser'
|
2017-02-22 03:56:52 -05:00
|
|
|
waitCondition = { node, ant ->
|
|
|
|
File tmpFile = new File(node.cwd, 'wait.success')
|
2017-03-15 13:23:26 -04:00
|
|
|
ant.get(src: "http://${node.httpUri()}/_cluster/health?wait_for_nodes=>=${numNodes}&wait_for_status=yellow",
|
2017-02-22 03:56:52 -05:00
|
|
|
dest: tmpFile.toString(),
|
|
|
|
username: 'test_user',
|
2017-06-29 16:27:57 -04:00
|
|
|
password: 'x-pack-test-password',
|
2017-02-22 03:56:52 -05:00
|
|
|
ignoreerrors: true,
|
|
|
|
retries: 10)
|
|
|
|
return tmpFile.exists()
|
2015-11-24 03:45:06 -05:00
|
|
|
}
|
|
|
|
}
|