mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-24 22:09:24 +00:00
Template APIs tests
This commit is contained in:
parent
f7c48ad616
commit
34183b4dee
29
rest-api-spec/test/indices.put_template/10_basic.yaml
Normal file
29
rest-api-spec/test/indices.put_template/10_basic.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
"Basic tests for templates":
|
||||
- do:
|
||||
indices.put_template:
|
||||
name: test
|
||||
body:
|
||||
template: test-*
|
||||
settings:
|
||||
number_of_shards: 1
|
||||
number_of_replicas: 0
|
||||
|
||||
- is_true: ok
|
||||
|
||||
- do:
|
||||
indices.get_template:
|
||||
name: test
|
||||
|
||||
- match: {test.template: "test-*"}
|
||||
- match: {test.settings: {index.number_of_shards: '1', index.number_of_replicas: '0'}}
|
||||
|
||||
- do:
|
||||
indices.delete_template:
|
||||
name: test
|
||||
|
||||
- do:
|
||||
indices.get_template:
|
||||
name: test
|
||||
|
||||
- match: {'': {}}
|
Loading…
x
Reference in New Issue
Block a user