2013-07-23 19:28:27 -04:00
|
|
|
---
|
|
|
|
"Basic test for warmers":
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
2013-12-04 14:16:58 -05:00
|
|
|
|
2013-07-23 19:28:27 -04:00
|
|
|
- do:
|
|
|
|
catch: missing
|
|
|
|
indices.get_warmer:
|
|
|
|
index: test_index
|
|
|
|
name: test_warmer
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.put_warmer:
|
|
|
|
index: test_index
|
|
|
|
name: test_warmer
|
|
|
|
body:
|
|
|
|
query:
|
|
|
|
match_all: {}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_warmer:
|
|
|
|
index: test_index
|
|
|
|
name: test_warmer
|
|
|
|
|
|
|
|
- match: {test_index.warmers.test_warmer.source.query.match_all: {}}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.delete_warmer:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: missing
|
|
|
|
indices.get_warmer:
|
|
|
|
index: test_index
|
|
|
|
name: test_warmer
|