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