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 tests for GET /_stats/{metric}. #743

Merged
merged 1 commit into from
Dec 17, 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
25 changes: 25 additions & 0 deletions tests/default/_core/stats.yaml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 0 additions & 12 deletions tests/default/indices/stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading