Skip to content

Commit

Permalink
Added tests for _refresh. (opensearch-project#374)
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Jul 3, 2024
1 parent 75c3704 commit 25521f1
Showing 1 changed file with 34 additions and 0 deletions.
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

0 comments on commit 25521f1

Please sign in to comment.