mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 05:58:44 +00:00
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
51 lines
882 B
YAML
51 lines
882 B
YAML
---
|
|
setup:
|
|
|
|
- do:
|
|
snapshot.create_repository:
|
|
repository: test_repo1
|
|
body:
|
|
type: url
|
|
settings:
|
|
url: "http://snapshot.test1"
|
|
|
|
- do:
|
|
snapshot.create_repository:
|
|
repository: test_repo2
|
|
body:
|
|
type: url
|
|
settings:
|
|
url: "http://snapshot.test2"
|
|
|
|
---
|
|
"Get all repositories":
|
|
- do:
|
|
snapshot.get_repository: {}
|
|
|
|
- is_true: test_repo1
|
|
- is_true: test_repo2
|
|
|
|
---
|
|
"Get repository by name":
|
|
- do:
|
|
snapshot.get_repository:
|
|
repository: test_repo1
|
|
|
|
- is_true: test_repo1
|
|
- is_false: test_repo2
|
|
|
|
---
|
|
"Get missing repository by name":
|
|
- do:
|
|
snapshot.get_repository:
|
|
repository: test_repo2
|
|
|
|
---
|
|
"Get all repositories with local flag":
|
|
- do:
|
|
snapshot.get_repository:
|
|
local: true
|
|
|
|
- is_true: test_repo1
|
|
- is_true: test_repo2
|