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 {
|
2017-02-10 14:02:42 -05:00
|
|
|
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'runtime')
|
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 {
|
|
|
|
plugin ':x-pack-elasticsearch:plugin'
|
|
|
|
setting 'xpack.watcher.enabled', 'false'
|
|
|
|
setting 'xpack.monitoring.enabled', 'false'
|
2017-03-02 12:01:05 -05:00
|
|
|
setting 'xpack.ml.enabled', 'false'
|
2017-02-22 03:56:52 -05:00
|
|
|
setupCommand 'setupDummyUser',
|
|
|
|
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser'
|
|
|
|
waitCondition = { node, ant ->
|
|
|
|
File tmpFile = new File(node.cwd, 'wait.success')
|
|
|
|
ant.get(src: "http://${node.httpUri()}",
|
|
|
|
dest: tmpFile.toString(),
|
|
|
|
username: 'test_user',
|
|
|
|
password: 'changeme',
|
|
|
|
ignoreerrors: true,
|
|
|
|
retries: 10)
|
|
|
|
return tmpFile.exists()
|
2015-11-24 03:45:06 -05:00
|
|
|
}
|
|
|
|
}
|