Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test for GET /_settings/{name}. #727

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions tests/default/_core/settings.yaml
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
34 changes: 0 additions & 34 deletions tests/default/indices/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,6 @@ epilogues:
method: DELETE
status: [200, 404]
chapters:
- synopsis: Get global 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 global 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: Write a setting to an index.
path: /{index}/_settings
method: PUT
Expand Down
Loading