[Security Solution] Clean connectors before custom query rule test (#147921)

This commit is contained in:
Luke Gmys 2022-12-21 20:33:47 +01:00 committed by GitHub
parent d632738057
commit 2a02b23ef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ import {
} from '../../tasks/alerts_detection_rules';
import { createCustomRuleEnabled } from '../../tasks/api_calls/rules';
import { createTimeline } from '../../tasks/api_calls/timelines';
import { cleanKibana, deleteAlertsAndRules } from '../../tasks/common';
import { cleanKibana, deleteAlertsAndRules, deleteConnectors } from '../../tasks/common';
import { addEmailConnectorAndRuleAction } from '../../tasks/common/rule_actions';
import {
continueWithNextSection,
@ -356,6 +356,7 @@ describe('Custom query rules', () => {
before(() => {
deleteAlertsAndRules();
deleteConnectors();
createCustomRuleEnabled(getExistingRule(), 'rule1');
});
beforeEach(() => {