From ef37e65b7145a68f6483c445d2bb29038c347114 Mon Sep 17 00:00:00 2001 From: Pierre Millot Date: Mon, 19 Feb 2024 13:57:14 +0100 Subject: [PATCH] fix(clients): add e2e tests for analytics API (#2737) --- .../requests/analytics/getTopSearches.json | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/CTS/requests/analytics/getTopSearches.json b/tests/CTS/requests/analytics/getTopSearches.json index eee7776055..8cda1ec94b 100644 --- a/tests/CTS/requests/analytics/getTopSearches.json +++ b/tests/CTS/requests/analytics/getTopSearches.json @@ -40,5 +40,29 @@ "tags": "tag" } } + }, + { + "testName": "e2e with complex query params", + "parameters": { + "index": "cts_e2e_space in index" + }, + "request": { + "path": "/2/searches", + "method": "GET", + "queryParameters": { + "index": "cts_e2e_space%20in%20index" + } + }, + "response": { + "statusCode": 200, + "body": { + "searches": [ + { + "search": "", + "nbHits": 0 + } + ] + } + } } ]