Skip to content

Commit

Permalink
[Profiling] API test fix (elastic#167168)
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes authored Oct 6, 2023
1 parent 7bb7228 commit ca6127e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions x-pack/test/profiling_api_integration/tests/has_setup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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 () => {
Expand Down

0 comments on commit ca6127e

Please sign in to comment.