Skip to content

Commit

Permalink
add deletePolicyStream to alerts api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallmain committed Jun 18, 2020
1 parent cc9c754 commit a4d1287
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions x-pack/test/api_integration/apis/endpoint/alerts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import expect from '@kbn/expect/expect.js';
import { FtrProviderContext } from '../../../ftr_provider_context';
import { AlertData } from '../../../../../plugins/security_solution/common/endpoint_alerts/types';
import { eventsIndexPattern } from '../../../../../plugins/security_solution/common/endpoint/constants';
import { deleteEventsStream, deleteMetadataStream } from '../data_stream_helper';
import {
deleteEventsStream,
deleteMetadataStream,
deletePolicyStream,
} from '../data_stream_helper';
import { indexHostsAndAlerts } from '../../../../../plugins/security_solution/common/endpoint/index_data';

/**
Expand Down Expand Up @@ -96,7 +100,11 @@ export default function ({ getService }: FtrProviderContext) {
after(async () => {
// the endpoint uses data streams and es archiver does not support deleting them at the moment so we need
// to do it manually
await Promise.all([deleteEventsStream(getService), deleteMetadataStream(getService)]);
await Promise.all([
deleteEventsStream(getService),
deleteMetadataStream(getService),
deletePolicyStream(getService),
]);
});

it('should not support POST requests', async () => {
Expand Down

0 comments on commit a4d1287

Please sign in to comment.