summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/indices.put_template/10_basic.yaml
blob: 4c2ab84f1effb7b746f7b674f6b72128ad4bad82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
"Put 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'}}