From 534584d525f3e62f9e5a0b32482e3e40e7f1fb6a Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 15 Mar 2017 10:27:38 -0700 Subject: [PATCH] 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 --- qa/smoke-test-ml-with-security/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/smoke-test-ml-with-security/build.gradle b/qa/smoke-test-ml-with-security/build.gradle index bd3b20e83b2..422996bdb2a 100644 --- a/qa/smoke-test-ml-with-security/build.gradle +++ b/qa/smoke-test-ml-with-security/build.gradle @@ -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',