diff --git a/tests/default/_core/stats.yaml b/tests/default/_core/stats.yaml new file mode 100644 index 00000000..98d898ce --- /dev/null +++ b/tests/default/_core/stats.yaml @@ -0,0 +1,25 @@ +$schema: ../../../json_schemas/test_story.schema.yaml + +description: Test stats. +chapters: + - synopsis: Get global stats. + path: /_stats + method: GET + response: + status: 200 + - synopsis: Get global stats with human fields. + path: /_stats + method: GET + parameters: + human: true + response: + status: 200 + - synopsis: Get stats for a given metric. + path: /_stats/{metric} + method: GET + parameters: + metric: docs + expand_wildcards: all + forbid_closed_indices: false + groups: '*' + level: indices diff --git a/tests/default/indices/stats.yaml b/tests/default/indices/stats.yaml index 24caa7e2..32e881b3 100644 --- a/tests/default/indices/stats.yaml +++ b/tests/default/indices/stats.yaml @@ -9,18 +9,6 @@ epilogues: method: DELETE status: [200, 404] chapters: - - synopsis: Get global stats. - path: /_stats - method: GET - response: - status: 200 - - synopsis: Get global stats with human fields. - path: /_stats - method: GET - parameters: - human: true - response: - status: 200 - synopsis: Get stats for an index. path: /{index}/_stats method: GET