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 {
|
2018-01-27 00:48:30 -05:00
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
|
|
testCompile project(path: xpackModule('security'), configuration: 'testArtifacts')
|
2015-11-24 03:45:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
integTest {
|
|
|
|
includePackaged true
|
2017-02-22 03:56:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
integTestRunner {
|
2015-12-03 14:56:12 -05:00
|
|
|
systemProperty 'tests.rest.blacklist',
|
2016-09-30 08:41:54 -04:00
|
|
|
['cat.aliases/10_basic/Empty cluster',
|
2015-11-24 03:45:06 -05:00
|
|
|
'index/10_with_id/Index with ID',
|
2016-03-07 12:15:06 -05:00
|
|
|
'indices.get_alias/10_basic/Get alias against closed indices',
|
2016-10-11 12:30:45 -04:00
|
|
|
'cat.templates/10_basic/No templates',
|
2016-11-10 21:42:59 -05:00
|
|
|
'cat.templates/10_basic/Sort templates',
|
|
|
|
'cat.templates/10_basic/Multiple template',
|
2016-09-20 06:05:21 -04:00
|
|
|
].join(',')
|
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-01-27 00:48:30 -05:00
|
|
|
plugin xpackProject('plugin').path
|
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',
|
2017-06-29 16:27:57 -04:00
|
|
|
'bin/x-pack/users', 'useradd', 'test_user', '-p', '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
|
|
|
}
|
|
|
|
}
|