From 1d5338811937334504558fb3141b2758879e30bf Mon Sep 17 00:00:00 2001 From: Justin Kambic Date: Mon, 6 Jun 2022 09:59:11 -0400 Subject: [PATCH] Delete CWV test from APM API suite. --- .../tests/csm/web_core_vitals.spec.ts | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 x-pack/test/apm_api_integration/tests/csm/web_core_vitals.spec.ts diff --git a/x-pack/test/apm_api_integration/tests/csm/web_core_vitals.spec.ts b/x-pack/test/apm_api_integration/tests/csm/web_core_vitals.spec.ts deleted file mode 100644 index 13e390b312eab..0000000000000 --- a/x-pack/test/apm_api_integration/tests/csm/web_core_vitals.spec.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../common/ftr_provider_context'; - -export default function rumServicesApiTests({ getService }: FtrProviderContext) { - const registry = getService('registry'); - const supertest = getService('legacySupertestAsApmReadUser'); - - registry.when('CSM web core vitals without data', { config: 'trial', archives: [] }, () => { - it('returns empty list', async () => { - const response = await supertest.get('/internal/apm/ux/web-core-vitals').query({ - start: '2020-09-07T20:35:54.654Z', - end: '2020-09-14T20:35:54.654Z', - uiFilters: '{"serviceName":["elastic-co-rum-test"]}', - percentile: 50, - }); - - expect(response.status).to.be(200); - expect(response.body).to.eql({ - coreVitalPages: 0, - cls: null, - tbt: 0, - lcpRanks: [100, 0, 0], - fidRanks: [100, 0, 0], - clsRanks: [100, 0, 0], - }); - }); - }); -}