summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/indices.put_settings/10_basic.yaml
blob: f5b913b8eb893e8bd3bb9d8d6a5217e762e98d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
"Test indices settings":
  - do:
      indices.create:
        index: test-index
        body:
          settings:
            index:
              number_of_replicas: 0

  - do:
      indices.get_settings:
        index: test-index
        flat_settings: true

  - match:
      test-index.settings.index\.number_of_replicas: "0"

  - do:
      indices.put_settings:
        body:
          number_of_replicas: 1

  - do:
      indices.get_settings:
        flat_settings: false

  - match:
      test-index.settings.index.number_of_replicas: "1"