2013-07-23 21:47:52 -04:00
|
|
|
---
|
|
|
|
"Basic test for index open/close":
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
2014-05-22 04:55:57 -04:00
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_replicas: 0
|
2013-07-23 21:47:52 -04:00
|
|
|
|
|
|
|
- do:
|
2013-09-17 08:16:18 -04:00
|
|
|
cluster.health:
|
2014-05-22 04:55:57 -04:00
|
|
|
wait_for_status: green
|
2013-07-23 21:47:52 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.close:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: forbidden
|
|
|
|
search:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.open:
|
|
|
|
index: test_index
|
|
|
|
|
2013-09-25 13:29:16 -04:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
2014-05-22 04:55:57 -04:00
|
|
|
wait_for_status: green
|
2013-09-25 13:29:16 -04:00
|
|
|
|
2013-07-23 21:47:52 -04:00
|
|
|
- do:
|
|
|
|
search:
|
|
|
|
index: test_index
|
|
|
|
|