Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed Jun 22, 2021
1 parent e627b28 commit e7c0e23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/test/api_integration/apis/ml/modules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ import { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ getService, loadTestFile }: FtrProviderContext) {
const ml = getService('ml');
const supertest = getService('supertest');

const fleetPackages = ['apache', 'nginx'];

describe('modules', function () {
before(async () => {
// Fleet need to be setup to be able to setup packages
await supertest.post(`/api/fleet/setup`).set({ 'kbn-xsrf': 'some-xsrf-token' }).expect(200);
for (const fleetPackage of fleetPackages) {
await ml.testResources.installFleetPackage(fleetPackage);
}
Expand Down

0 comments on commit e7c0e23

Please sign in to comment.