From 04d5ceaf058c082459cc2d0d75808e513e99adf1 Mon Sep 17 00:00:00 2001 From: dblock Date: Mon, 25 Nov 2024 10:42:09 -0500 Subject: [PATCH] Added test for POST /_mget. Signed-off-by: dblock --- tests/default/_core/mget.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/default/_core/mget.yaml b/tests/default/_core/mget.yaml index 42f1afcf7..0d409ecf6 100644 --- a/tests/default/_core/mget.yaml +++ b/tests/default/_core/mget.yaml @@ -23,7 +23,7 @@ prologues: - {create: {_index: movies, _id: movie2}} - {director: Nicolas Winding Refn, title: Drive, year: 1960} chapters: - - synopsis: Retrieve documents from multiple indexes. + - synopsis: Retrieve documents from multiple indexes (GET). path: /_mget method: GET request: @@ -45,3 +45,21 @@ chapters: _id: movie1 - _index: books _id: book1 + - synopsis: Retrieve documents from multiple indexes (POST). + path: /_mget + method: POST + request: + payload: + docs: + - _index: books + _id: book1 + - _index: movies + _id: movie1 + response: + status: 200 + payload: + docs: + - _index: books + _id: book1 + - _index: movies + _id: movie1