-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Index
Upgrade
API specs and tests for them (#690)
* replication added Signed-off-by: Tokesh <[email protected]> * fixing lint and trying test verbose Signed-off-by: Tokesh <[email protected]> * changing docker compose Signed-off-by: Tokesh <[email protected]> * adding tests for replication namespace Signed-off-by: Tokesh <[email protected]> * fixing lint, validate specs ci Signed-off-by: Tokesh <[email protected]> * fixing docker-compose and validate specs ci Signed-off-by: Tokesh <[email protected]> * fixing validate specs ci Signed-off-by: Tokesh <[email protected]> * trying to fix validate specs Signed-off-by: Tokesh <[email protected]> * trying to fix validate specs v2 Signed-off-by: Tokesh <[email protected]> * adding specs and tests for upgrade api Signed-off-by: Tokesh <[email protected]> * removing conflicts with rebase Signed-off-by: Tokesh <[email protected]> * hotfix lint Signed-off-by: Tokesh <[email protected]> * fixing ci cd conflicts Signed-off-by: Tokesh <[email protected]> * flipping post and get and adding real deprecated version in specs Signed-off-by: Tokesh <[email protected]> * adding two more upgrade specs Signed-off-by: Tokesh <[email protected]> --------- Signed-off-by: Tokesh <[email protected]> Signed-off-by: Niyazbek Torekeldi <[email protected]>
- Loading branch information
Showing
3 changed files
with
134 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test upgrading index using both GET and POST methods. | ||
epilogues: | ||
- path: /movies | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: /_bulk | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: movies, _id: movie1}} | ||
- {director: Bennett Miller, title: The Cruise, year: 1998} | ||
- {create: {_index: movies, _id: movie2}} | ||
- {director: Nicolas Winding Refn, title: Drive, year: 1960} | ||
chapters: | ||
- synopsis: Trigger index upgrade (POST). | ||
path: /{index}/_upgrade | ||
method: POST | ||
parameters: | ||
index: [movies] | ||
request: | ||
payload: | ||
allow_no_indices: true | ||
expand_wildcards: open | ||
ignore_unavailable: true | ||
response: | ||
status: 200 | ||
|
||
- synopsis: Check index upgrade status (GET). | ||
path: /{index}/_upgrade | ||
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 |