Tests: Use cluster health api for wait condition in ml integ test

This was forgotten in elastic/x-pack-elasticsearch#740

Original commit: elastic/x-pack-elasticsearch@47c10dc543
This commit is contained in:
Ryan Ernst 2017-03-15 10:27:38 -07:00
parent 8c01d6ea69
commit 534584d525
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ integTestCluster {
'bin/x-pack/users', 'useradd', 'no_ml', '-p', 'changeme', '-r', 'minimal'
waitCondition = { node, ant ->
File tmpFile = new File(node.cwd, 'wait.success')
ant.get(src: "http://${node.httpUri()}",
ant.get(src: "http://${node.httpUri()}/_cluster/health?wait_for_nodes=>=${numNodes}&wait_for_status=yellow",
dest: tmpFile.toString(),
username: 'test_admin',
password: 'changeme',