Skip to content

Commit

Permalink
[Security Solution] Fixes Rule Bulk Actions Integration Tests (elasti…
Browse files Browse the repository at this point in the history
…c#182527)

## Summary

Resolves elastic#182512

`should enable rules and migrate actions` test expects the rule to
return a successful status but it always returns a partial failure as it
cannot find the rule's index pattern: `auditbeat-*`.

[Flaky test runner result
(internal)](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5862)

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
  • Loading branch information
dplumlee authored May 7, 2024
1 parent 2ad67e9 commit 75a4907
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export default ({ getService }: FtrProviderContext): void => {
const createWebHookConnector = () => createConnector(getWebHookAction());

// Failing: See https://github.com/elastic/kibana/issues/173804
// Failing: See https://github.com/elastic/kibana/issues/182512
describe.skip('@ess perform_bulk_action - ESS specific logic', () => {
describe('@ess perform_bulk_action - ESS specific logic', () => {
beforeEach(async () => {
await deleteAllRules(supertest, log);
});
Expand Down Expand Up @@ -107,7 +106,7 @@ export default ({ getService }: FtrProviderContext): void => {
webhookUrl: 'http://localhost:1234',
},
}),
createRule(supertest, log, getSimpleRule(ruleId, false)),
createRule(supertest, log, { ...getSimpleRule(ruleId, false), index: ['*'] }),
]);
await createLegacyRuleAction(supertest, rule1.id, connector.body.id);

Expand Down

0 comments on commit 75a4907

Please sign in to comment.