From 8cb6c6ea00fda13690669133e11b8490327c4e8a Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Sun, 30 Jun 2013 20:02:32 +0200 Subject: [PATCH] Wait-for-yellow IS required for routing, otherwise can get shard-not-available instead of missing --- rest-api-spec/test/create/40_routing.yaml | 4 +++- rest-api-spec/test/delete/30_routing.yaml | 3 +++ rest-api-spec/test/index/40_routing.yaml | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/rest-api-spec/test/create/40_routing.yaml b/rest-api-spec/test/create/40_routing.yaml index a5daa22d8e2..a0ac30b9279 100644 --- a/rest-api-spec/test/create/40_routing.yaml +++ b/rest-api-spec/test/create/40_routing.yaml @@ -7,7 +7,9 @@ id: 1 routing: 5 body: { foo: bar } - + - do: + cluster.health: + wait_for_status: yellow - do: get: index: test_1 diff --git a/rest-api-spec/test/delete/30_routing.yaml b/rest-api-spec/test/delete/30_routing.yaml index 5269e79409d..da14bcafa76 100644 --- a/rest-api-spec/test/delete/30_routing.yaml +++ b/rest-api-spec/test/delete/30_routing.yaml @@ -7,6 +7,9 @@ id: 1 routing: 5 body: { foo: bar } + - do: + cluster.health: + wait_for_status: yellow - do: catch: missing delete: diff --git a/rest-api-spec/test/index/40_routing.yaml b/rest-api-spec/test/index/40_routing.yaml index b8e64315e76..d7caddcdfae 100644 --- a/rest-api-spec/test/index/40_routing.yaml +++ b/rest-api-spec/test/index/40_routing.yaml @@ -7,7 +7,9 @@ id: 1 routing: 5 body: { foo: bar } - + - do: + cluster.health: + wait_for_status: yellow - do: get: index: test_1