Skip to content

Commit

Permalink
[TEST] add REST test for update index settings api using indices options
Browse files Browse the repository at this point in the history
Relates to #10030
  • Loading branch information
javanna committed Mar 21, 2015
1 parent 9561678 commit 481ef7d
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions rest-api-spec/test/indices.put_settings/10_basic.yaml
@@ -1,5 +1,4 @@
---
"Test indices settings":
setup:
- do:
indices.create:
index: test-index
Expand All @@ -8,6 +7,8 @@
index:
number_of_replicas: 0

---
"Test indices settings":
- do:
indices.get_settings:
index: test-index
Expand All @@ -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

0 comments on commit 481ef7d

Please sign in to comment.