diff --git a/rest-api-spec/test/indices.put_settings/10_basic.yaml b/rest-api-spec/test/indices.put_settings/10_basic.yaml index f5b913b8eb8..f9a453c90f1 100644 --- a/rest-api-spec/test/indices.put_settings/10_basic.yaml +++ b/rest-api-spec/test/indices.put_settings/10_basic.yaml @@ -1,5 +1,4 @@ ---- -"Test indices settings": +setup: - do: indices.create: index: test-index @@ -8,6 +7,8 @@ index: number_of_replicas: 0 +--- +"Test indices settings": - do: indices.get_settings: index: test-index @@ -28,3 +29,28 @@ - match: test-index.settings.index.number_of_replicas: "1" +--- +"Test indices settings ignore_unavailable": + - do: + indices.put_settings: + ignore_unavailable: true + index: test-index, non-existing + body: + number_of_replicas: 1 + + - do: + indices.get_settings: {} + + - match: + test-index.settings.index.number_of_replicas: "1" + +--- +"Test indices settings allow_no_indices": + - do: + indices.put_settings: + expand_wildcards: open + allow_no_indices: true + index: non-existing-* + body: + number_of_replicas: 1 +