-
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.
Output a warning on mulitple paths being tested in the same file. (#452)
* Output a warning on mulitple paths being tested in the same file. Signed-off-by: dblock <[email protected]> * Support disabling warnings. Signed-off-by: dblock <[email protected]> * Fixed prologue warnings. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
36 changed files
with
386 additions
and
164 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
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,36 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test cat/pit_segments/_all endpoints. | ||
version: '>= 2.4' | ||
epilogues: | ||
- path: /games | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: /games/_doc | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request_body: | ||
payload: | ||
title: Monopoly | ||
status: [201] | ||
- id: create_pit | ||
path: /{index}/_search/point_in_time | ||
method: POST | ||
parameters: | ||
index: | ||
- games | ||
keep_alive: 1m | ||
output: | ||
pit_id: payload.pit_id | ||
chapters: | ||
- synopsis: Cat _all with a json response. | ||
path: /_cat/pit_segments/_all | ||
method: GET | ||
parameters: | ||
format: json | ||
response: | ||
status: 200 | ||
payload: | ||
- index: games |
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,68 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test alias endpoints. | ||
epilogues: | ||
- path: /games | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: /{index} | ||
method: PUT | ||
parameters: | ||
index: games | ||
chapters: | ||
- synopsis: Create an alias. | ||
path: /{index}/_alias/{name} | ||
method: PUT | ||
parameters: | ||
index: games | ||
name: jeux | ||
- synopsis: Get an alias from index. | ||
method: GET | ||
path: /{index}/_alias/{name} | ||
parameters: | ||
index: games | ||
name: jeux | ||
response: | ||
status: 200 | ||
content_type: application/json | ||
payload: | ||
games: | ||
aliases: | ||
jeux: {} | ||
- synopsis: Delete an alias. | ||
path: /{index}/_alias/{name} | ||
method: DELETE | ||
parameters: | ||
index: games | ||
name: jeux | ||
- synopsis: Create an alias by Create or Update alias endpoint. | ||
path: /{index}/_alias/{name} | ||
method: PUT | ||
parameters: | ||
index: games | ||
name: jeux | ||
- synopsis: Create an alias with custom settings by Create or Update alias endpoint. | ||
path: /{index}/_alias/{name} | ||
method: PUT | ||
parameters: | ||
index: games | ||
name: jeux | ||
request_body: | ||
payload: | ||
index_routing: test1 | ||
search_routing: test2 | ||
routing: test | ||
is_write_index: true | ||
filter: | ||
match_all: {} | ||
- synopsis: Create an alias with is_hidden by Create or Update alias endpoint. | ||
version: '>= 2.16' | ||
path: /{index}/_alias/{name} | ||
method: PUT | ||
parameters: | ||
index: games | ||
name: jeux | ||
request_body: | ||
payload: | ||
is_hidden: 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
Oops, something went wrong.