Skip to content

Commit

Permalink
Add Segments API test (#477)
Browse files Browse the repository at this point in the history
* Add Segments API test

Signed-off-by: Archer <[email protected]>

* Fix errors

Signed-off-by: Archer <[email protected]>

* Update changelog

Signed-off-by: Archer <[email protected]>

---------

Signed-off-by: Archer <[email protected]>
  • Loading branch information
Naarcha-AWS committed Aug 8, 2024
1 parent 41360b7 commit e865cf6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/default/indices/segments.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e865cf6

Please sign in to comment.