Skip to content

Commit

Permalink
splitting upgrade api specs (#703)
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh authored Dec 2, 2024
1 parent b7e9744 commit 441577f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
20 changes: 20 additions & 0 deletions tests/default/_core/upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test upgrading indices using both GET and POST methods.
chapters:
- synopsis: Trigger upgrade (POST).
path: /_upgrade
method: POST
request:
payload:
allow_no_indices: false
expand_wildcards: closed
ignore_unavailable: false
response:
status: 200

- synopsis: Check upgrade status (GET).
path: /_upgrade
method: GET
response:
status: 200
17 changes: 0 additions & 17 deletions tests/default/indices/upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,5 @@ chapters:
method: GET
parameters:
index: [movies]
response:
status: 200

- synopsis: Trigger upgrade (POST).
path: /_upgrade
method: POST
request:
payload:
allow_no_indices: false
expand_wildcards: closed
ignore_unavailable: false
response:
status: 200

- synopsis: Check upgrade status (GET).
path: /_upgrade
method: GET
response:
status: 200

0 comments on commit 441577f

Please sign in to comment.