mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 07:25:23 +00:00
With replicas the search requests might go to shards that are not ready, since we have a wait for yellow. We can now switch to wait for green as well.
35 lines
520 B
YAML
35 lines
520 B
YAML
---
|
|
"Basic test for index open/close":
|
|
- do:
|
|
indices.create:
|
|
index: test_index
|
|
body:
|
|
settings:
|
|
number_of_replicas: 0
|
|
|
|
- do:
|
|
cluster.health:
|
|
wait_for_status: green
|
|
|
|
- do:
|
|
indices.close:
|
|
index: test_index
|
|
|
|
- do:
|
|
catch: forbidden
|
|
search:
|
|
index: test_index
|
|
|
|
- do:
|
|
indices.open:
|
|
index: test_index
|
|
|
|
- do:
|
|
cluster.health:
|
|
wait_for_status: green
|
|
|
|
- do:
|
|
search:
|
|
index: test_index
|
|
|