From 56fe6b862a617ffaab6a5107aed1830fb6d2cb07 Mon Sep 17 00:00:00 2001 From: dblock Date: Wed, 3 Jul 2024 09:03:56 -0400 Subject: [PATCH] Added tests for _refresh. Signed-off-by: dblock --- tests/indices/_refresh.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/indices/_refresh.yaml 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