diff --git a/tests/indices/_refresh.yaml b/tests/indices/_refresh.yaml new file mode 100644 index 000000000..d4aff0cef --- /dev/null +++ b/tests/indices/_refresh.yaml @@ -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