javanna de9fca9cb2 [TEST] indices.open REST tests need 0 replicas
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.
2014-05-22 11:04:28 +02:00

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