Skip to content

Commit

Permalink
[Security Solution] Clean connectors before custom query rule test is…
Browse files Browse the repository at this point in the history
… executed
  • Loading branch information
lgestc committed Dec 21, 2022
1 parent 886289d commit 8320dea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -356,6 +356,7 @@ describe('Custom query rules', () => {

before(() => {
deleteAlertsAndRules();
deleteConnectors();
createCustomRuleEnabled(getExistingRule(), 'rule1');
});
beforeEach(() => {
Expand Down

0 comments on commit 8320dea

Please sign in to comment.