diff --git a/rest-api-spec/test/create/40_routing.yaml b/rest-api-spec/test/create/40_routing.yaml index 97de708ab68..bc3fb84f5e9 100644 --- a/rest-api-spec/test/create/40_routing.yaml +++ b/rest-api-spec/test/create/40_routing.yaml @@ -1,6 +1,18 @@ --- "Routing": + - do: + indices.create: + index: test_1 + body: + settings: + index: + number_of_replicas: 0 + + - do: + cluster.health: + wait_for_status: green + - do: create: index: test_1 @@ -8,9 +20,6 @@ id: 1 routing: 5 body: { foo: bar } - - do: - cluster.health: - wait_for_status: yellow - do: get: diff --git a/rest-api-spec/test/create/55_parent_with_routing.yaml b/rest-api-spec/test/create/55_parent_with_routing.yaml index b089b7c49b4..ec9471842bc 100644 --- a/rest-api-spec/test/create/55_parent_with_routing.yaml +++ b/rest-api-spec/test/create/55_parent_with_routing.yaml @@ -8,9 +8,12 @@ mappings: test: _parent: { type: "foo" } + settings: + number_of_replicas: 0 + - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: create: diff --git a/rest-api-spec/test/delete/45_parent_with_routing.yaml b/rest-api-spec/test/delete/45_parent_with_routing.yaml index 76060f84f9c..7a11db4e467 100644 --- a/rest-api-spec/test/delete/45_parent_with_routing.yaml +++ b/rest-api-spec/test/delete/45_parent_with_routing.yaml @@ -8,9 +8,12 @@ mappings: test: _parent: { type: "foo" } + settings: + number_of_replicas: 0 + - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: index: diff --git a/rest-api-spec/test/exists/40_routing.yaml b/rest-api-spec/test/exists/40_routing.yaml index ef4fb94ac7d..56ba443e3cd 100644 --- a/rest-api-spec/test/exists/40_routing.yaml +++ b/rest-api-spec/test/exists/40_routing.yaml @@ -1,6 +1,18 @@ --- "Routing": + - do: + indices.create: + index: test_1 + body: + settings: + index: + number_of_replicas: 0 + + - do: + cluster.health: + wait_for_status: green + - do: index: index: test_1 @@ -8,9 +20,7 @@ id: 1 routing: 5 body: { foo: bar } - - do: - cluster.health: - wait_for_status: yellow + - do: exists: index: test_1 diff --git a/rest-api-spec/test/exists/55_parent_with_routing.yaml b/rest-api-spec/test/exists/55_parent_with_routing.yaml index 1e0c1b60626..0e92aac6b2a 100644 --- a/rest-api-spec/test/exists/55_parent_with_routing.yaml +++ b/rest-api-spec/test/exists/55_parent_with_routing.yaml @@ -8,9 +8,12 @@ mappings: test: _parent: { type: "foo" } + settings: + number_of_replicas: 0 + - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: index: diff --git a/rest-api-spec/test/get/40_routing.yaml b/rest-api-spec/test/get/40_routing.yaml index 2f935fbc66c..f909cb0cbf7 100644 --- a/rest-api-spec/test/get/40_routing.yaml +++ b/rest-api-spec/test/get/40_routing.yaml @@ -1,6 +1,18 @@ --- "Routing": + - do: + indices.create: + index: test_1 + body: + settings: + index: + number_of_replicas: 0 + + - do: + cluster.health: + wait_for_status: green + - do: index: index: test_1 @@ -8,9 +20,7 @@ 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/get/55_parent_with_routing.yaml b/rest-api-spec/test/get/55_parent_with_routing.yaml index 16e590b5a56..43d60f5bd50 100644 --- a/rest-api-spec/test/get/55_parent_with_routing.yaml +++ b/rest-api-spec/test/get/55_parent_with_routing.yaml @@ -8,9 +8,12 @@ mappings: test: _parent: { type: "foo" } + settings: + number_of_replicas: 0 + - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: index: diff --git a/rest-api-spec/test/get_source/40_routing.yaml b/rest-api-spec/test/get_source/40_routing.yaml index 349c20cbe65..f771dbb0593 100644 --- a/rest-api-spec/test/get_source/40_routing.yaml +++ b/rest-api-spec/test/get_source/40_routing.yaml @@ -1,6 +1,18 @@ --- "Routing": + - do: + indices.create: + index: test_1 + body: + settings: + index: + number_of_replicas: 0 + + - do: + cluster.health: + wait_for_status: green + - do: index: index: test_1 @@ -8,9 +20,7 @@ id: 1 routing: 5 body: { foo: bar } - - do: - cluster.health: - wait_for_status: yellow + - do: get_source: index: test_1 diff --git a/rest-api-spec/test/get_source/55_parent_with_routing.yaml b/rest-api-spec/test/get_source/55_parent_with_routing.yaml index d30219e8535..86fe2ba47bb 100644 --- a/rest-api-spec/test/get_source/55_parent_with_routing.yaml +++ b/rest-api-spec/test/get_source/55_parent_with_routing.yaml @@ -8,9 +8,12 @@ mappings: test: _parent: { type: "foo" } + settings: + number_of_replicas: 0 + - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: index: diff --git a/rest-api-spec/test/index/40_routing.yaml b/rest-api-spec/test/index/40_routing.yaml index 8a506aff11e..f909cb0cbf7 100644 --- a/rest-api-spec/test/index/40_routing.yaml +++ b/rest-api-spec/test/index/40_routing.yaml @@ -1,6 +1,18 @@ --- "Routing": + - do: + indices.create: + index: test_1 + body: + settings: + index: + number_of_replicas: 0 + + - do: + cluster.health: + wait_for_status: green + - do: index: index: test_1 @@ -8,9 +20,6 @@ id: 1 routing: 5 body: { foo: bar } - - do: - cluster.health: - wait_for_status: yellow - do: get: diff --git a/rest-api-spec/test/index/55_parent_with_routing.yaml b/rest-api-spec/test/index/55_parent_with_routing.yaml index 16e590b5a56..43d60f5bd50 100644 --- a/rest-api-spec/test/index/55_parent_with_routing.yaml +++ b/rest-api-spec/test/index/55_parent_with_routing.yaml @@ -8,9 +8,12 @@ mappings: test: _parent: { type: "foo" } + settings: + number_of_replicas: 0 + - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: index: diff --git a/rest-api-spec/test/mget/40_routing.yaml b/rest-api-spec/test/mget/40_routing.yaml index 8139834e85a..96734da3293 100644 --- a/rest-api-spec/test/mget/40_routing.yaml +++ b/rest-api-spec/test/mget/40_routing.yaml @@ -1,6 +1,18 @@ --- "Routing": + - do: + indices.create: + index: test_1 + body: + settings: + index: + number_of_replicas: 0 + + - do: + cluster.health: + wait_for_status: green + - do: index: index: test_1 @@ -8,9 +20,7 @@ id: 1 routing: 5 body: { foo: bar } - - do: - cluster.health: - wait_for_status: yellow + - do: mget: index: test_1 diff --git a/rest-api-spec/test/mget/55_parent_with_routing.yaml b/rest-api-spec/test/mget/55_parent_with_routing.yaml index 11a77961131..039f5c58aac 100644 --- a/rest-api-spec/test/mget/55_parent_with_routing.yaml +++ b/rest-api-spec/test/mget/55_parent_with_routing.yaml @@ -8,9 +8,12 @@ mappings: test: _parent: { type: "foo" } + settings: + number_of_replicas: 0 + - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: index: diff --git a/rest-api-spec/test/update/40_routing.yaml b/rest-api-spec/test/update/40_routing.yaml index 6ba6a5098b0..52cd938fb71 100644 --- a/rest-api-spec/test/update/40_routing.yaml +++ b/rest-api-spec/test/update/40_routing.yaml @@ -1,6 +1,18 @@ --- "Routing": + - do: + indices.create: + index: test_1 + body: + settings: + index: + number_of_replicas: 0 + + - do: + cluster.health: + wait_for_status: green + - do: update: index: test_1 diff --git a/rest-api-spec/test/update/55_parent_with_routing.yaml b/rest-api-spec/test/update/55_parent_with_routing.yaml index fa90b723c8f..cc828021500 100644 --- a/rest-api-spec/test/update/55_parent_with_routing.yaml +++ b/rest-api-spec/test/update/55_parent_with_routing.yaml @@ -8,9 +8,12 @@ mappings: test: _parent: { type: "foo" } + settings: + number_of_replicas: 0 + - do: cluster.health: - wait_for_status: yellow + wait_for_status: green - do: update: