Fix tribe test setup to look for a single node
numNodes isn't available because it is not in the normal context of
cluster configuration.
relates elastic/x-pack-elasticsearch#740
Original commit: elastic/x-pack-elasticsearch@336147f20cb8ec1447c332eac5aa4ea3942a4a73
@@ -20,7 +20,7 @@ configOne.setupCommand('setupDummyUser',
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser')
configOne.waitCondition = { node, ant ->
File tmpFile = new File(node.cwd, 'wait.success')
- ant.get(src: "http://${node.httpUri()}/_cluster/health?wait_for_nodes=>=${numNodes}&wait_for_status=yellow",
+ ant.get(src: "http://${node.httpUri()}/_cluster/health?wait_for_nodes=>=1&wait_for_status=yellow",
dest: tmpFile.toString(),
username: 'test_user',
password: 'changeme',
@@ -40,7 +40,7 @@ configTwo.setupCommand('setupDummyUser',
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser')
configTwo.waitCondition = { node, ant ->
File tmpFile = new File(node.cwd, 'wait.success')
- ant.get(src: "http://${node.httpUri()}/_cluster/health?wait_for_nodes=>=${numNodes}&wait_for_status=yellow",
+ ant.get(src: "http://${node.httpUri()}/_cluster/health?wait_for_nodes=>=1&wait_for_status=yellow",
dest: tmpFile.toString(),
username: 'test_user',
password: 'changeme',
@@ -68,7 +68,7 @@ integTestCluster {
setting 'tribe.cluster2.xpack.ml.enabled', 'false'
waitCondition = { node, ant ->
File tmpFile = new File(node.cwd, 'wait.success')
- ant.get(src: "http://${node.httpUri()}/_cluster/health?wait_for_nodes=>=${numNodes}&wait_for_status=yellow",
+ ant.get(src: "http://${node.httpUri()}/_cluster/health?wait_for_nodes=>=1&wait_for_status=yellow",
dest: tmpFile.toString(),
username: 'test_user',
password: 'changeme',
