forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test for GET /_settings/{name}. (opensearch-project#727)
Signed-off-by: dblock <[email protected]> Signed-off-by: Nathalie Jonathan <[email protected]>
- Loading branch information
1 parent
18f135d
commit 2994879
Showing
2 changed files
with
58 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test settings. | ||
prologues: | ||
- path: /movies | ||
method: PUT | ||
- path: /movies/_settings | ||
method: PUT | ||
request: | ||
payload: | ||
settings: | ||
index.blocks.write: true | ||
index: | ||
number_of_replicas: 4 | ||
epilogues: | ||
- path: /movies | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Get settings. | ||
distributions: | ||
excluded: | ||
- amazon-managed | ||
- amazon-serverless | ||
path: /_settings | ||
method: GET | ||
parameters: | ||
allow_no_indices: true | ||
expand_wildcards: all | ||
flat_settings: true | ||
include_defaults: true | ||
ignore_unavailable: true | ||
local: true | ||
response: | ||
status: 200 | ||
- synopsis: Get settings (cluster_manager_timeout). | ||
distributions: | ||
excluded: | ||
- amazon-managed | ||
- amazon-serverless | ||
path: /_settings | ||
method: GET | ||
version: '>= 2.0' | ||
parameters: | ||
allow_no_indices: true | ||
expand_wildcards: all | ||
flat_settings: true | ||
include_defaults: true | ||
ignore_unavailable: true | ||
local: true | ||
cluster_manager_timeout: 1s | ||
response: | ||
status: 200 | ||
- synopsis: Get settings by name. | ||
path: /_settings/{name} | ||
method: GET | ||
parameters: | ||
name: index.number_of_replicas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters