[SIEM] unblocks master failures (#85319)

This commit is contained in:
MadameSheema 2020-12-08 20:46:56 +01:00 committed by GitHub
parent ae83f598bf
commit 3f32b56192
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 7 deletions

View file

@ -39,8 +39,8 @@ describe('Alerts', () => {
});
afterEach(() => {
removeSignalsIndex();
esArchiverUnload('alerts');
removeSignalsIndex();
});
it('Closes and opens alerts', () => {
@ -169,8 +169,8 @@ describe('Alerts', () => {
});
afterEach(() => {
removeSignalsIndex();
esArchiverUnload('closed_alerts');
removeSignalsIndex();
});
it('Open one alert when more than one closed alerts are selected', () => {
@ -221,8 +221,8 @@ describe('Alerts', () => {
});
afterEach(() => {
removeSignalsIndex();
esArchiverUnload('alerts');
removeSignalsIndex();
});
it('Mark one alert in progress when more than one open alerts are selected', () => {

View file

@ -66,8 +66,8 @@ describe('Exceptions', () => {
afterEach(() => {
esArchiverUnload('auditbeat_for_exceptions');
esArchiverUnload('auditbeat_for_exceptions2');
removeSignalsIndex();
deleteCustomRule();
removeSignalsIndex();
});
context('From rule', () => {
it('Creates an exception and deletes it', () => {

View file

@ -120,8 +120,8 @@ describe('Custom detection rules creation', () => {
after(() => {
deleteRule();
removeSignalsIndex();
esArchiverUnload('timeline');
removeSignalsIndex();
});
it('Creates and activates a new rule', () => {

View file

@ -28,8 +28,8 @@ describe('Export rules', () => {
});
after(() => {
removeSignalsIndex();
esArchiverUnload('export_rule');
removeSignalsIndex();
});
it('Exports a custom rule', () => {

View file

@ -97,8 +97,8 @@ describe('Detection rules, Indicator Match', () => {
afterEach(() => {
esArchiverUnload('threat_indicator');
esArchiverUnload('threat_data');
removeSignalsIndex();
deleteRule();
removeSignalsIndex();
});
it('Creates and activates a new Indicator Match rule', () => {

View file

@ -53,6 +53,7 @@ import {
waitForLoadElasticPrebuiltDetectionRulesTableToBeLoaded,
waitForRulesToBeLoaded,
} from '../tasks/alerts_detection_rules';
import { removeSignalsIndex } from '../tasks/api_calls';
import {
createAndActivateRule,
fillAboutRuleAndContinue,
@ -79,6 +80,7 @@ describe('Detection rules, machine learning', () => {
after(() => {
deleteRule();
esArchiverUnload('prebuilt_rules_loaded');
removeSignalsIndex();
});
it('Creates and activates a new ml rule', () => {