2013-09-18 09:29:21 -04:00
|
|
|
---
|
|
|
|
"Get template":
|
|
|
|
- do:
|
|
|
|
indices.put_template:
|
|
|
|
name: test
|
|
|
|
body:
|
|
|
|
template: test-*
|
|
|
|
settings:
|
|
|
|
number_of_shards: 1
|
|
|
|
number_of_replicas: 0
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_template:
|
|
|
|
name: test
|
|
|
|
|
|
|
|
- match: {test.template: "test-*"}
|
|
|
|
- match: {test.settings: {index.number_of_shards: '1', index.number_of_replicas: '0'}}
|
2013-10-08 12:18:20 -04:00
|
|
|
---
|
|
|
|
"Get all templates":
|
2013-10-09 07:11:00 -04:00
|
|
|
- skip:
|
|
|
|
version: "0 - 0.90.3"
|
|
|
|
reason: "Get all templates not available before 0.90.4"
|
|
|
|
|
2013-10-08 12:18:20 -04:00
|
|
|
- do:
|
|
|
|
indices.put_template:
|
|
|
|
name: test
|
|
|
|
body:
|
|
|
|
template: test-*
|
|
|
|
settings:
|
|
|
|
number_of_shards: 1
|
|
|
|
- do:
|
|
|
|
indices.put_template:
|
|
|
|
name: test2
|
|
|
|
body:
|
|
|
|
template: test2-*
|
|
|
|
settings:
|
|
|
|
number_of_shards: 1
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_template: {}
|
|
|
|
|
|
|
|
- match: {test.template: "test-*"}
|
|
|
|
- match: {test2.template: "test2-*"}
|
|
|
|
|