From e865cf6755dc551e96fbd2f4252fc50a869db01a Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Thu, 8 Aug 2024 11:42:43 -0500 Subject: [PATCH] Add Segments API test (#477) * Add Segments API test Signed-off-by: Archer * Fix errors Signed-off-by: Archer * Update changelog Signed-off-by: Archer --------- Signed-off-by: Archer --- tests/default/indices/segments.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/default/indices/segments.yaml diff --git a/tests/default/indices/segments.yaml b/tests/default/indices/segments.yaml new file mode 100644 index 00000000..da87fec7 --- /dev/null +++ b/tests/default/indices/segments.yaml @@ -0,0 +1,28 @@ +$schema: ../../../json_schemas/test_story.schema.yaml + +description: This story tests the Segments API. + +prologues: + - path: /movies + method: PUT +epilogues: + - path: /movies + method: DELETE + status: [200, 404] +chapters: + - synopsis: Get details about Lucene segments. + path: /_segments + method: GET + parameters: + expand_wildcards: none + response: + status: 200 + - synopsis: Get details about Lucene segments inside the specified index. + path: /{index}/_segments + method: GET + parameters: + index: movies + expand_wildcards: all + allow_no_indices: false + response: + status: 200