Skip to content

Commit

Permalink
Call setupIngest before fleet_install tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Jul 16, 2020
1 parent 63e6666 commit b5adf2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x-pack/test/api_integration/apis/fleet/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@

import expect from '@kbn/expect';
import { FtrProviderContext } from '../../ftr_provider_context';
import { setupIngest } from './agents/services';

export default function ({ getService }: FtrProviderContext) {
export default function (providerContext: FtrProviderContext) {
const { getService } = providerContext;
const supertest = getService('supertest');

describe('fleet_install', () => {
setupIngest(providerContext);

it('should return a 400 if we try download an install script for a not supported OS', async () => {
await supertest.get(`/api/ingest_manager/fleet/install/gameboy`).expect(400);
});
Expand Down

0 comments on commit b5adf2d

Please sign in to comment.