-
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.
set
value
required in constant_keyword field type
Signed-off-by: kewei.11 <[email protected]>
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
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,33 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test constant_keyword field type and retrieving a doc. | ||
|
||
prologues: | ||
- path: /{index} | ||
method: PUT | ||
parameters: | ||
index: movies | ||
request_body: | ||
payload: | ||
mappings: | ||
properties: | ||
genre: | ||
type: constant_keyword | ||
value: Romantic comedy | ||
|
||
epilogues: | ||
- path: /movies | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Create a document. | ||
path: /{index}/_doc | ||
method: POST | ||
parameters: | ||
index: movies | ||
request_body: | ||
payload: | ||
genre: Romantic comedy | ||
year: 1991 | ||
response: | ||
status: 201 |