-
Notifications
You must be signed in to change notification settings - Fork 62
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
24 changed files
with
247 additions
and
159 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
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
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.