From ca6127ee022a7c7a607d1b6d3e8c57527356710d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Marcondes?= <55978943+cauemarcondes@users.noreply.github.com> Date: Fri, 6 Oct 2023 13:58:21 +0100 Subject: [PATCH] [Profiling] API test fix (#167168) closes https://github.com/elastic/kibana/issues/167076 --- .../profiling_api_integration/tests/has_setup.spec.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/x-pack/test/profiling_api_integration/tests/has_setup.spec.ts b/x-pack/test/profiling_api_integration/tests/has_setup.spec.ts index 583cc02908025..1c415f2240361 100644 --- a/x-pack/test/profiling_api_integration/tests/has_setup.spec.ts +++ b/x-pack/test/profiling_api_integration/tests/has_setup.spec.ts @@ -11,7 +11,7 @@ import { ProfilingStatus } from '@kbn/profiling-utils'; import { getBettertest } from '../common/bettertest'; import { FtrProviderContext } from '../common/ftr_provider_context'; import { deletePackagePolicy, getProfilingPackagePolicyIds } from '../utils/fleet'; -import { loadProfilingData, setupProfiling } from '../utils/profiling_data'; +import { cleanUpProfilingData, loadProfilingData, setupProfiling } from '../utils/profiling_data'; const profilingRoutePaths = getRoutePaths(); @@ -23,9 +23,11 @@ export default function featureControlsTests({ getService }: FtrProviderContext) const logger = getService('log'); const es = getService('es'); - // Failing: See https://github.com/elastic/kibana/issues/167076 - registry.when.skip('Profiling status check', { config: 'cloud' }, () => { + registry.when('Profiling status check', { config: 'cloud' }, () => { describe('Profiling is not set up and no data is loaded', () => { + before(async () => { + await cleanUpProfilingData({ es, logger, bettertest }); + }); describe('Admin user', () => { let statusCheck: ProfilingStatus; before(async () => {