OpenSearch/rest-api-spec/test/indices.open/20_multiple_indices.yaml

93 lines
1.3 KiB
YAML

setup:
- do:
indices.create:
index: test_index1
body:
settings:
number_of_replicas: 0
- do:
indices.create:
index: test_index2
body:
settings:
number_of_replicas: 0
- do:
indices.create:
index: test_index3
body:
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green
---
"All indices":
- do:
indices.close:
index: _all
- do:
catch: forbidden
search:
index: test_index2
- do:
indices.open:
index: _all
- do:
cluster.health:
wait_for_status: green
- do:
search:
index: test_index2
---
"Trailing wildcard":
- do:
indices.close:
index: test_*
- do:
catch: forbidden
search:
index: test_index2
- do:
indices.open:
index: test_*
- do:
cluster.health:
wait_for_status: green
- do:
search:
index: test_index2
---
"Only wildcard":
- do:
indices.close:
index: '*'
- do:
catch: forbidden
search:
index: test_index3
- do:
indices.open:
index: '*'
- do:
cluster.health:
wait_for_status: green
- do:
search:
index: test_index3