2013-12-24 09:29:59 -05:00
|
|
|
setup:
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index1
|
2014-05-22 04:55:57 -04:00
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_replicas: 0
|
2013-12-24 09:29:59 -05:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index2
|
2014-05-22 04:55:57 -04:00
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_replicas: 0
|
2013-12-24 09:29:59 -05:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index3
|
2014-05-22 04:55:57 -04:00
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_replicas: 0
|
2013-12-24 09:29:59 -05:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
2014-05-22 04:55:57 -04:00
|
|
|
wait_for_status: green
|
2013-12-24 09:29:59 -05:00
|
|
|
|
|
|
|
---
|
|
|
|
"All indices":
|
|
|
|
- do:
|
|
|
|
indices.close:
|
|
|
|
index: _all
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: forbidden
|
|
|
|
search:
|
|
|
|
index: test_index2
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.open:
|
|
|
|
index: _all
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
2014-05-22 04:55:57 -04:00
|
|
|
wait_for_status: green
|
2013-12-24 09:29:59 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
search:
|
|
|
|
index: test_index2
|
|
|
|
|
|
|
|
---
|
|
|
|
"Trailing wildcard":
|
|
|
|
- do:
|
|
|
|
indices.close:
|
|
|
|
index: test_*
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: forbidden
|
|
|
|
search:
|
|
|
|
index: test_index2
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.open:
|
|
|
|
index: test_*
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
2014-05-22 04:55:57 -04:00
|
|
|
wait_for_status: green
|
2013-12-24 09:29:59 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
search:
|
|
|
|
index: test_index2
|
|
|
|
|
|
|
|
---
|
|
|
|
"Only wildcard":
|
|
|
|
- do:
|
|
|
|
indices.close:
|
|
|
|
index: '*'
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: forbidden
|
|
|
|
search:
|
|
|
|
index: test_index3
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.open:
|
|
|
|
index: '*'
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
2014-05-22 04:55:57 -04:00
|
|
|
wait_for_status: green
|
2013-12-24 09:29:59 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
search:
|
2014-01-13 07:17:30 -05:00
|
|
|
index: test_index3
|
|
|
|
|