Skip to content

Commit

Permalink
Added tests for GET /_mapping/field/{fields}.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock committed Nov 25, 2024
1 parent 04d5cea commit f43dd1c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/default/_core/mapping/field.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test field mappings.
prologues:
- path: /{index}
method: PUT
parameters:
index: movies
request:
payload:
mappings:
properties:
director:
type: text
year:
type: integer
epilogues:
- path: /movies
method: DELETE
status: [200, 404]
chapters:
- synopsis: Get field mappings across multiple indexes.
path: /_mapping/field/{fields}
method: GET
parameters:
fields: year
response:
status: 200

0 comments on commit f43dd1c

Please sign in to comment.