From de9fca9cb26cb90aeaecada6bae35d219b07c5ca Mon Sep 17 00:00:00 2001 From: javanna Date: Thu, 22 May 2014 10:55:57 +0200 Subject: [PATCH] [TEST] indices.open REST tests need 0 replicas With replicas the search requests might go to shards that are not ready, since we have a wait for yellow. We can now switch to wait for green as well. --- rest-api-spec/test/indices.open/10_basic.yaml | 7 +++++-- .../test/indices.open/20_multiple_indices.yaml | 17 +++++++++++++---- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/rest-api-spec/test/indices.open/10_basic.yaml b/rest-api-spec/test/indices.open/10_basic.yaml index 6b8846bfa85..122043b4c42 100644 --- a/rest-api-spec/test/indices.open/10_basic.yaml +++ b/rest-api-spec/test/indices.open/10_basic.yaml @@ -3,10 +3,13 @@ - do: indices.create: index: test_index + body: + settings: + number_of_replicas: 0 - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: indices.close: @@ -23,7 +26,7 @@ - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: search: diff --git a/rest-api-spec/test/indices.open/20_multiple_indices.yaml b/rest-api-spec/test/indices.open/20_multiple_indices.yaml index 8a32cc4b3ba..a53d889097e 100644 --- a/rest-api-spec/test/indices.open/20_multiple_indices.yaml +++ b/rest-api-spec/test/indices.open/20_multiple_indices.yaml @@ -2,15 +2,24 @@ setup: - do: indices.create: index: test_index1 + body: + settings: + number_of_replicas: 0 - do: indices.create: index: test_index2 + body: + settings: + number_of_replicas: 0 - do: indices.create: index: test_index3 + body: + settings: + number_of_replicas: 0 - do: cluster.health: - wait_for_status: yellow + wait_for_status: green --- "All indices": @@ -29,7 +38,7 @@ setup: - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: search: @@ -52,7 +61,7 @@ setup: - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: search: @@ -75,7 +84,7 @@ setup: - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: search: