mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 14:26:27 +00:00
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:
parent
8c01d6ea69
commit
534584d525
@ -71,7 +71,7 @@ integTestCluster {
|
|||||||
'bin/x-pack/users', 'useradd', 'no_ml', '-p', 'changeme', '-r', 'minimal'
|
'bin/x-pack/users', 'useradd', 'no_ml', '-p', 'changeme', '-r', 'minimal'
|
||||||
waitCondition = { node, ant ->
|
waitCondition = { node, ant ->
|
||||||
File tmpFile = new File(node.cwd, 'wait.success')
|
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(),
|
dest: tmpFile.toString(),
|
||||||
username: 'test_admin',
|
username: 'test_admin',
|
||||||
password: 'changeme',
|
password: 'changeme',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user