open/close index tests

This commit is contained in:
Honza Kral 2013-07-24 03:47:52 +02:00
parent fb512495cb
commit c447fe5002
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
---
"Basic test for index open/close":
- do:
indices.create:
index: test_index
- do:
indices.exists:
index: test_index
- is_true: ''
- do:
indices.close:
index: test_index
- do:
catch: forbidden
search:
index: test_index
- do:
indices.open:
index: test_index
- do:
search:
index: test_index