---
"Test indices settings":
  - do:
      indices.create:
        index: test-index
        body:
          settings:
            index:
              number_of_replicas: 0

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

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

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

  - do:
      indices.get_settings: {}

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

