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@47c10dc5437540aceda31584862f0b7fd5082d77
@@ -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',
