From 196ad8e9eb89213c4b3b479058e75d721a3a2bfb Mon Sep 17 00:00:00 2001 From: Dario Gieselaar Date: Thu, 4 Mar 2021 14:27:57 +0100 Subject: [PATCH] Use uiFilters in API tests --- .../apm_api_integration/tests/services/top_services.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/x-pack/test/apm_api_integration/tests/services/top_services.ts b/x-pack/test/apm_api_integration/tests/services/top_services.ts index dc8b23c67eb760..a8aa673a285c35 100644 --- a/x-pack/test/apm_api_integration/tests/services/top_services.ts +++ b/x-pack/test/apm_api_integration/tests/services/top_services.ts @@ -272,10 +272,12 @@ export default function ApiTest({ getService }: FtrProviderContext) { } const [unfilteredResponse, filteredResponse] = await Promise.all([ - supertest.get(`/api/apm/services?start=${start}&end=${end}`) as Promise, supertest.get( - `/api/apm/services?start=${start}&end=${end}&kuery=${encodeURIComponent( - 'not (processor.event:transaction)' + `/api/apm/services?start=${start}&end=${end}&uiFilters={}` + ) as Promise, + supertest.get( + `/api/apm/services?start=${start}&end=${end}&uiFilters=${encodeURIComponent( + '{ "kuery": "not (processor.event:transaction)" }' )}` ) as Promise, ]);