diff --git a/tests/default/indices/segments.yaml b/tests/default/indices/segments.yaml new file mode 100644 index 000000000..da87fec7b --- /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