From f43dd1cea68b48627f25c7e2d6b201dd59406120 Mon Sep 17 00:00:00 2001 From: dblock Date: Mon, 25 Nov 2024 10:46:26 -0500 Subject: [PATCH] Added tests for GET /_mapping/field/{fields}. Signed-off-by: dblock --- tests/default/_core/mapping/field.yaml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/default/_core/mapping/field.yaml diff --git a/tests/default/_core/mapping/field.yaml b/tests/default/_core/mapping/field.yaml new file mode 100644 index 000000000..04c47f370 --- /dev/null +++ b/tests/default/_core/mapping/field.yaml @@ -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