From 4bec8d6c1390ab33d9336f623f50bcd53089c3a5 Mon Sep 17 00:00:00 2001 From: Tokesh Date: Wed, 18 Dec 2024 00:24:09 +0500 Subject: [PATCH] adding POST role mapping test Signed-off-by: Tokesh --- tests/default/indices/mapping/index.yaml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tests/default/indices/mapping/index.yaml b/tests/default/indices/mapping/index.yaml index 4a1fe86de..d9bb4fadb 100644 --- a/tests/default/indices/mapping/index.yaml +++ b/tests/default/indices/mapping/index.yaml @@ -145,4 +145,23 @@ chapters: response: status: 200 payload: - acknowledged: true \ No newline at end of file + acknowledged: true + - synopsis: Add or update mapping using POST method. + path: /{index}/_mapping + method: POST + parameters: + index: movies + allow_no_indices: false + ignore_unavailable: false + expand_wildcards: open + request: + payload: + properties: + actor: + type: text + rating: + type: float + response: + status: 200 + payload: + acknowledged: true