From cc2b00c4431aadeaae67ac32acc4fb19506ee749 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Wed, 25 Feb 2015 20:34:43 +0100 Subject: [PATCH] Test: cluster.health rest test should use 0 replicas Some client test harnesses do not limit the number of replicas based on the number of nodes. --- rest-api-spec/test/cluster.health/10_basic.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/test/cluster.health/10_basic.yaml b/rest-api-spec/test/cluster.health/10_basic.yaml index 107e01204ff..ba1881e4239 100644 --- a/rest-api-spec/test/cluster.health/10_basic.yaml +++ b/rest-api-spec/test/cluster.health/10_basic.yaml @@ -19,6 +19,11 @@ - do: indices.create: index: test_index + body: + settings: + index: + number_of_replicas: 0 + - do: cluster.health: wait_for_status: green @@ -41,7 +46,7 @@ index: test_index - do: cluster.health: - wait_for_status: green + wait_for_status: yellow level: indices - is_true: indices