-
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.
Remaining alias-related tests. (#667)
* Added test for POST /{index}/_aliases/{name}. Signed-off-by: dblock <[email protected]> * Added tests for POST /{alias}/_rollover/{new_index}. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test rolling over aliases. | ||
epilogues: | ||
- path: /games | ||
method: DELETE | ||
status: [200, 404] | ||
- path: /rollover | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: games | ||
method: PUT | ||
- path: /games/_alias/jeux | ||
method: POST | ||
chapters: | ||
- synopsis: Manually roll over an index. | ||
path: /{alias}/_rollover/{new_index} | ||
method: POST | ||
parameters: | ||
alias: jeux | ||
new_index: rollover | ||
response: | ||
status: 200 | ||
payload: | ||
acknowledged: true | ||
old_index: games | ||
new_index: rollover | ||
rolled_over: true |
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