2013-07-24 03:47:52 +02:00
|
|
|
---
|
|
|
|
"Basic test for index open/close":
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
2014-05-22 10:55:57 +02:00
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_replicas: 0
|
2013-07-24 03:47:52 +02:00
|
|
|
|
|
|
|
- do:
|
2013-09-17 14:16:18 +02:00
|
|
|
cluster.health:
|
2014-05-22 10:55:57 +02:00
|
|
|
wait_for_status: green
|
2013-07-24 03:47:52 +02:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.close:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: forbidden
|
|
|
|
search:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.open:
|
|
|
|
index: test_index
|
|
|
|
|
2013-09-25 19:29:16 +02:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
2014-05-22 10:55:57 +02:00
|
|
|
wait_for_status: green
|
2013-09-25 19:29:16 +02:00
|
|
|
|
2013-07-24 03:47:52 +02:00
|
|
|
- do:
|
|
|
|
search:
|
|
|
|
index: test_index
|
|
|
|
|