2015-03-21 06:10:24 -04:00
|
|
|
setup:
|
2013-07-21 18:49:53 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test-index
|
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
index:
|
|
|
|
number_of_replicas: 0
|
|
|
|
|
2015-03-21 06:10:24 -04:00
|
|
|
---
|
|
|
|
"Test indices settings":
|
2013-07-21 18:49:53 -04:00
|
|
|
- do:
|
|
|
|
indices.get_settings:
|
|
|
|
index: test-index
|
2014-01-06 11:50:57 -05:00
|
|
|
flat_settings: true
|
2013-07-21 18:49:53 -04:00
|
|
|
|
|
|
|
- match:
|
|
|
|
test-index.settings.index\.number_of_replicas: "0"
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.put_settings:
|
|
|
|
body:
|
|
|
|
number_of_replicas: 1
|
|
|
|
|
|
|
|
- do:
|
2014-01-06 11:50:57 -05:00
|
|
|
indices.get_settings:
|
|
|
|
flat_settings: false
|
2013-07-21 18:49:53 -04:00
|
|
|
|
|
|
|
- match:
|
2014-01-06 11:50:57 -05:00
|
|
|
test-index.settings.index.number_of_replicas: "1"
|
2013-07-21 18:49:53 -04:00
|
|
|
|
2015-03-21 06:10:24 -04:00
|
|
|
---
|
|
|
|
"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
|
|
|
|
|