[TEST] add REST test for update index settings api using indices options
Relates to #10030
This commit is contained in:
parent
9561678ca0
commit
481ef7d3f4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue