Skip to content

Commit

Permalink
Add resolve API test (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naarcha-AWS authored Aug 14, 2024
1 parent 83eab43 commit 89e383b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
3 changes: 1 addition & 2 deletions tests/default/indices/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,4 @@ chapters:
version: '>= 2.0'
parameters:
index: books,games
cluster_manager_timeout: 10s

cluster_manager_timeout: 10s
20 changes: 20 additions & 0 deletions tests/default/indices/resolve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$schema: ../../../json_schemas/test_story.schema.yaml

description: Tests to see if the specified index exits using the `_resolve` endpoint.
prologues:
- path: /movies
method: PUT
epilogues:
- path: /movies
method: DELETE
status: [200, 404]

chapters:
- synopsis: See if index `movies` exists. It should.
path: /_resolve/index/{name}
method: GET
parameters:
name: movies
expand_wildcards: none
response:
status: 200

0 comments on commit 89e383b

Please sign in to comment.