All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rest-api-spec.test.indices.put_settings.all_path_options.yml Maven / Gradle / Ivy

There is a newer version: 2.18.0
Show newest version
setup:
  - do:
      indices.create:
        index: test_index1
  - do:
      indices.create:
        index: test_index2
  - do:
      indices.create:
        index: foo


---
"put settings per index":
  - do:
      indices.put_settings:
        index: test_index1
        body:
          refresh_interval: 1s

  - do:
      indices.put_settings:
        index: test_index2
        body:
          refresh_interval: 1s


  - do:
      indices.get_settings: {}

  - match: {test_index1.settings.index.refresh_interval:     1s}
  - match: {test_index2.settings.index.refresh_interval:     1s}
  - is_false: foo.settings.index.refresh_interval

---
"put settings in _all index":
  - do:
      indices.put_settings:
        index: _all
        body:
          refresh_interval: 1s

  - do:
      indices.get_settings: {}

  - match: {test_index1.settings.index.refresh_interval:     1s}
  - match: {test_index2.settings.index.refresh_interval:     1s}
  - match: {foo.settings.index.refresh_interval:     1s}

---
"put settings in * index":
  - do:
      indices.put_settings:
        index: '*'
        body:
          refresh_interval: 1s

  - do:
      indices.get_settings: {}

  - match: {test_index1.settings.index.refresh_interval:     1s}
  - match: {test_index2.settings.index.refresh_interval:     1s}
  - match: {foo.settings.index.refresh_interval:     1s}


---
"put settings in prefix* index":
  - do:
      indices.put_settings:
        index: 'test*'
        body:
          refresh_interval: 1s

  - do:
      indices.get_settings: {}

  - match: {test_index1.settings.index.refresh_interval:     1s}
  - match: {test_index2.settings.index.refresh_interval:     1s}
  - is_false: foo.settings.index.refresh_interval

---
"put settings in list of indices":
  - skip:
      version: "all"
      reason:  list of indices not implemented yet
  - do:
      indices.put_settings:
        index: test_index1, test_index2
        body:
          refresh_interval: 1s

  - do:
      indices.get_settings: {}

  - match: {test_index1.settings.index.refresh_interval:     1s}
  - match: {test_index2.settings.index.refresh_interval:     1s}
  - is_false: foo.settings.index.refresh_interval


---
"put settings in blank index":
  - do:
      indices.put_settings:
        body:
          refresh_interval: 1s

  - do:
      indices.get_settings: {}

  - match: {test_index1.settings.index.refresh_interval:     1s}
  - match: {test_index2.settings.index.refresh_interval:     1s}
  - match: {foo.settings.index.refresh_interval:     1s}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy