Clinton Gormley 59ca459b1c Fixed indices.open test - need to wait for shards to be allocated
before trying to close the index
2013-09-17 14:16:18 +02:00

28 lines
391 B
YAML

---
"Basic test for index open/close":
- do:
indices.create:
index: test_index
- do:
cluster.health:
wait_for_status: yellow
- do:
indices.close:
index: test_index
- do:
catch: forbidden
search:
index: test_index
- do:
indices.open:
index: test_index
- do:
search:
index: test_index