diff --git a/tests/default/_core/settings.yaml b/tests/default/_core/settings.yaml new file mode 100644 index 00000000..919b88fc --- /dev/null +++ b/tests/default/_core/settings.yaml @@ -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 \ No newline at end of file diff --git a/tests/default/indices/settings.yaml b/tests/default/indices/settings.yaml index 8513ffaa..0ac83462 100644 --- a/tests/default/indices/settings.yaml +++ b/tests/default/indices/settings.yaml @@ -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