2015-11-24 03:45:06 -05:00
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2016-10-01 03:46:43 -04:00
|
|
|
testCompile project(path: ':x-plugins:elasticsearch', configuration: 'runtime')
|
2015-11-24 03:45:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
integTest {
|
|
|
|
includePackaged true
|
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(',')
|
2015-11-24 03:45:06 -05:00
|
|
|
|
|
|
|
cluster {
|
2016-10-01 03:46:43 -04:00
|
|
|
plugin ':x-plugins:elasticsearch'
|
2016-03-15 20:01:01 -04:00
|
|
|
setting 'xpack.watcher.enabled', 'false'
|
|
|
|
setting 'xpack.monitoring.enabled', 'false'
|
2015-11-24 03:45:06 -05:00
|
|
|
setupCommand 'setupDummyUser',
|
2016-02-10 09:42:59 -05:00
|
|
|
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser'
|
2015-11-24 03:45:06 -05:00
|
|
|
waitCondition = { node, ant ->
|
|
|
|
File tmpFile = new File(node.cwd, 'wait.success')
|
2015-12-11 21:23:01 -05:00
|
|
|
ant.get(src: "http://${node.httpUri()}",
|
2015-11-24 03:45:06 -05:00
|
|
|
dest: tmpFile.toString(),
|
|
|
|
username: 'test_user',
|
|
|
|
password: 'changeme',
|
2015-11-24 11:24:57 -05:00
|
|
|
ignoreerrors: true,
|
|
|
|
retries: 10)
|
2015-11-24 03:45:06 -05:00
|
|
|
return tmpFile.exists()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|