OpenSearch/rest-api-spec/test/indices.put_settings/10_basic.yaml

57 lines
1.1 KiB
YAML
Raw Normal View History

setup:
2013-07-21 18:49:53 -04:00
- do:
indices.create:
index: test-index
body:
settings:
index:
number_of_replicas: 0
---
"Test indices settings":
2013-07-21 18:49:53 -04:00
- do:
indices.get_settings:
index: test-index
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:
indices.get_settings:
flat_settings: false
2013-07-21 18:49:53 -04:00
- match:
test-index.settings.index.number_of_replicas: "1"
2013-07-21 18:49:53 -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