2014-01-17 10:39:18 -05:00
|
|
|
---
|
2014-01-20 11:52:25 -05:00
|
|
|
setup:
|
|
|
|
- do:
|
|
|
|
indices.delete_template:
|
|
|
|
name: test
|
|
|
|
ignore: [404]
|
|
|
|
---
|
2014-01-17 10:39:18 -05:00
|
|
|
"Test indices.exists_template":
|
|
|
|
- do:
|
|
|
|
indices.exists_template:
|
|
|
|
name: test
|
|
|
|
|
|
|
|
- is_false: ''
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.put_template:
|
|
|
|
name: test
|
|
|
|
body:
|
2014-01-20 07:25:16 -05:00
|
|
|
template: 'test-*'
|
2014-01-17 10:39:18 -05:00
|
|
|
settings:
|
|
|
|
number_of_shards: 1
|
|
|
|
number_of_replicas: 0
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.exists_template:
|
|
|
|
name: test
|
2015-02-13 05:11:02 -05:00
|
|
|
master_timeout: 1m
|
2014-01-17 10:39:18 -05:00
|
|
|
|
|
|
|
- is_true: ''
|
|
|
|
|
|
|
|
---
|
|
|
|
"Test indices.exists_template with local flag":
|
|
|
|
- do:
|
|
|
|
indices.exists_template:
|
|
|
|
name: test
|
|
|
|
local: true
|
|
|
|
|
|
|
|
- is_false: ''
|
2014-01-20 07:25:16 -05:00
|
|
|
|