Skip to content

Commit

Permalink
Use kuery instead of uiFilters for API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Feb 25, 2021
1 parent 1e2bebf commit 22baa96
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,10 @@ export default function ApiTest({ getService }: FtrProviderContext) {
}

const [unfilteredResponse, filteredResponse] = await Promise.all([
supertest.get(`/api/apm/services?start=${start}&end=${end}`) as Promise<Response>,
supertest.get(
`/api/apm/services?start=${start}&end=${end}&uiFilters={}`
) as Promise<Response>,
supertest.get(
`/api/apm/services?start=${start}&end=${end}&uiFilters=${encodeURIComponent(
`{ "kuery": "not (processor.event:transaction)" }`
`/api/apm/services?start=${start}&end=${end}&kuery=${encodeURIComponent(
'not (processor.event:transaction)'
)}`
) as Promise<Response>,
]);
Expand Down

0 comments on commit 22baa96

Please sign in to comment.