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 _refresh. #374

Merged
merged 1 commit into from
Jul 3, 2024
Merged
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
34 changes: 34 additions & 0 deletions tests/indices/_refresh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
$schema: ../../json_schemas/test_story.schema.yaml

description: Test _refresh.
epilogues:
- path: /movies
method: DELETE
status: [200, 404]
prologues:
- path: /movies/_doc
method: POST
request_body:
payload:
title: Beauty and the Beast
year: 1991
status: [201]
chapters:
- synopsis: Refresh.
path: /_refresh
method: POST
response:
status: 200
- synopsis: Refresh an index.
path: /{index}/_refresh
method: POST
parameters:
index: movies
ignore_unavailable: true
allow_no_indices: false
expand_wildcards: all
response:
status: 200
payload:
_shards:
failed: 0
Loading