From f1c14461d24a42e48baab97e72615f5e40573133 Mon Sep 17 00:00:00 2001 From: Caue Marcondes Date: Mon, 25 Sep 2023 16:33:13 +0100 Subject: [PATCH] [Profiling] API test fix --- .../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 () => {