-
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.
Fix /_ingest/pipeline/{id}/_simulate doc/_source field schema.
Signed-off-by: dblock <dblock@amazon.com>
- Loading branch information
Showing
3 changed files
with
152 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test the creation of an ingest pipeline. | ||
epilogues: | ||
- path: /_ingest/pipeline/books_pipeline | ||
method: DELETE | ||
status: [200, 404] | ||
- path: /_ingest/pipeline/movies_pipeline | ||
method: DELETE | ||
status: [200, 404] | ||
version: '>= 2.11' | ||
chapters: | ||
- synopsis: Create a books ingest pipeline. | ||
path: /_ingest/pipeline/{id} | ||
method: PUT | ||
parameters: | ||
id: books_pipeline | ||
request: | ||
payload: | ||
description: A books pipeline that does nothing. | ||
processors: [] | ||
response: | ||
status: 200 | ||
payload: | ||
acknowledged: true | ||
- synopsis: Create a movies ingest pipeline. | ||
path: /_ingest/pipeline/{id} | ||
method: PUT | ||
parameters: | ||
id: movies_pipeline | ||
request: | ||
payload: | ||
description: A movies pipeline that does nothing. | ||
processors: [] | ||
response: | ||
status: 200 | ||
payload: | ||
acknowledged: true | ||
- synopsis: Query created books pipeline. | ||
path: /_ingest/pipeline/{id} | ||
method: GET | ||
parameters: | ||
id: books_pipeline | ||
response: | ||
status: 200 | ||
payload: | ||
books_pipeline: | ||
description: A books pipeline that does nothing. | ||
- synopsis: Query all pipelines. | ||
path: /_ingest/pipeline | ||
method: GET | ||
response: | ||
status: 200 | ||
payload: | ||
books_pipeline: | ||
description: A books pipeline that does nothing. | ||
movies_pipeline: | ||
description: A movies pipeline that does nothing. | ||
- synopsis: Delete the books pipeline. | ||
path: /_ingest/pipeline/{id} | ||
method: DELETE | ||
parameters: | ||
id: books_pipeline | ||
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,86 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test the simulation of an ingest pipeline. | ||
version: '>= 2.11' | ||
epilogues: | ||
- path: /_ingest/pipeline/movies_pipeline | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: /_ingest/pipeline/movies_pipeline | ||
method: PUT | ||
request: | ||
payload: | ||
description: A movies pipeline that does nothing. | ||
processors: [] | ||
chapters: | ||
- synopsis: Simulate an existing ingest pipeline (GET). | ||
path: /_ingest/pipeline/{id}/_simulate | ||
method: GET | ||
parameters: | ||
id: movies_pipeline | ||
verbose: true | ||
request: | ||
payload: | ||
docs: | ||
- _index: movies | ||
_id: '1' | ||
_source: | ||
title: The Cruise | ||
director: Bennett Miller, | ||
year: 1998 | ||
response: | ||
status: 200 | ||
payload: | ||
docs: | ||
- processor_results: [] | ||
- synopsis: Simulate an existing ingest pipeline (POST). | ||
path: /_ingest/pipeline/{id}/_simulate | ||
method: POST | ||
parameters: | ||
id: movies_pipeline | ||
request: | ||
payload: | ||
docs: | ||
- _index: movies | ||
_id: '1' | ||
_source: | ||
title: The Cruise | ||
director: Bennett Miller, | ||
year: 1998 | ||
response: | ||
status: 200 | ||
- synopsis: Simulate an ingest pipeline with the pipeline in the request body (GET). | ||
path: /_ingest/pipeline/_simulate | ||
method: GET | ||
request: | ||
payload: | ||
pipeline: | ||
description: A movies pipeline that does nothing. | ||
processors: [] | ||
docs: | ||
- _index: movies | ||
_id: '1' | ||
_source: | ||
title: The Cruise | ||
director: Bennett Miller, | ||
year: 1998 | ||
response: | ||
status: 200 | ||
- synopsis: Simulate an ingest pipeline with the pipeline in the request body (POST). | ||
path: /_ingest/pipeline/_simulate | ||
method: POST | ||
request: | ||
payload: | ||
pipeline: | ||
description: A movies pipeline that does nothing. | ||
processors: [] | ||
docs: | ||
- _index: movies | ||
_id: '1' | ||
_source: | ||
title: The Cruise | ||
director: Bennett Miller, | ||
year: 1998 | ||
response: | ||
status: 200 |