mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 07:25:23 +00:00
3a558972b2
Added base TransportAction class for master read operations that execute locally or not depending on the request class (local flag). Added support for local flag where missing, in a backwards compatible manner: - IndicesExistsRequest - GetAliasesRequest (get alias api, aliases exist api) - TypesExistsRequest - GetIndexTemplatesRequest (get template, template exists) - GetSettingsRequest - GetRepositoriesRequest - PendingClusterTasks Added parsing of the local flag where missing in Rest*Action. Updated SPEC adding local flag param where missing and added REST tests that contain use of the local flag where it was just added. Closes #3345
25 lines
372 B
YAML
25 lines
372 B
YAML
---
|
|
"Test indices.exists":
|
|
- do:
|
|
indices.exists:
|
|
index: test_index
|
|
|
|
- is_false: ''
|
|
|
|
- do:
|
|
indices.create:
|
|
index: test_index
|
|
|
|
- do:
|
|
indices.exists:
|
|
index: test_index
|
|
|
|
- is_true: ''
|
|
---
|
|
"Test indices.exists with local flag":
|
|
- do:
|
|
indices.exists:
|
|
index: test_index
|
|
local: true
|
|
|
|
- is_false: '' |