-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
7 changed files
with
119 additions
and
103 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,58 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test /_alias variants. | ||
epilogues: | ||
- path: /movies/_alias/film* | ||
method: DELETE | ||
status: [200, 404] | ||
- path: /movies | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: /{index} | ||
method: PUT | ||
parameters: | ||
index: movies | ||
chapters: | ||
- synopsis: Create an alias (index in body). | ||
path: /_alias/{name} | ||
method: PUT | ||
parameters: | ||
name: film1 | ||
request: | ||
payload: | ||
index: movies | ||
response: | ||
status: 200 | ||
payload: | ||
acknowledged: true | ||
- synopsis: Create an alias (index & alias in body). | ||
path: /_alias | ||
method: PUT | ||
request: | ||
payload: | ||
index: movies | ||
alias: film2 | ||
response: | ||
status: 200 | ||
payload: | ||
acknowledged: true | ||
- synopsis: Get all aliases. | ||
path: /_alias | ||
method: GET | ||
response: | ||
status: 200 | ||
- synopsis: Get an alias by name. | ||
path: /_alias/{name} | ||
parameters: | ||
name: film1 | ||
method: GET | ||
response: | ||
status: 200 | ||
- synopsis: Check that an alias exists. | ||
path: /_alias/{name} | ||
parameters: | ||
name: film1 | ||
method: HEAD | ||
response: | ||
status: 200 |
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,35 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test aliases endpoints. | ||
epilogues: | ||
- path: /games/_alias/* | ||
method: DELETE | ||
status: [200, 404] | ||
- path: /games | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: games | ||
method: PUT | ||
- path: /games/_aliases/jeux | ||
method: PUT | ||
chapters: | ||
- synopsis: Multiple alias operations. | ||
path: /_aliases | ||
method: POST | ||
request: | ||
payload: | ||
actions: | ||
- remove: | ||
index: games | ||
alias: jeux | ||
- add: | ||
index: games | ||
alias: plays1 | ||
- add: | ||
index: games | ||
alias: plays2 | ||
response: | ||
status: 200 | ||
payload: | ||
acknowledged: 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
This file was deleted.
Oops, something went wrong.