-
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.
Added missing _search/point_in_time tests.
Signed-off-by: dblock <dblock@amazon.com>
- Loading branch information
Showing
3 changed files
with
100 additions
and
0 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,33 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test point-in-time. | ||
version: '>= 2.4' | ||
epilogues: | ||
- path: /_search/point_in_time/_all | ||
method: DELETE | ||
- 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}} | ||
- {title: The Cruise, year: 1998} | ||
- {create: {_index: movies}} | ||
- {title: Drive, year: 1960} | ||
- path: /movies/_search/point_in_time | ||
method: POST | ||
parameters: | ||
keep_alive: 1m | ||
chapters: | ||
- synopsis: Get all point in time. | ||
path: /_search/point_in_time/_all | ||
method: GET | ||
- synopsis: Delete all point in time. | ||
path: /_search/point_in_time/_all | ||
method: DELETE |
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,37 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test point-in-time. | ||
version: '>= 2.4' | ||
epilogues: | ||
- path: /_search/point_in_time/_all | ||
method: DELETE | ||
- 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}} | ||
- {title: The Cruise, year: 1998} | ||
- {create: {_index: movies}} | ||
- {title: Drive, year: 1960} | ||
- path: /movies/_search/point_in_time | ||
id: pit | ||
method: POST | ||
parameters: | ||
keep_alive: 1m | ||
output: | ||
id: payload.pit_id | ||
chapters: | ||
- synopsis: Delete all pits. | ||
path: /_search/point_in_time | ||
request: | ||
payload: | ||
pit_id: | ||
- ${pit.id} | ||
method: DELETE |
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,30 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test point-in-time. | ||
version: '>= 2.4' | ||
epilogues: | ||
- path: /_search/point_in_time/_all | ||
method: DELETE | ||
- 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}} | ||
- {title: The Cruise, year: 1998} | ||
- {create: {_index: movies}} | ||
- {title: Drive, year: 1960} | ||
chapters: | ||
- synopsis: Create a point in time. | ||
path: /{index}/_search/point_in_time | ||
method: POST | ||
parameters: | ||
index: | ||
- movies | ||
keep_alive: 1m |