Skip to content

Commit

Permalink
fix find tests (#163702)
Browse files Browse the repository at this point in the history
## Summary

Fix flaky find rule e2e tests.

Tested using this tool:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2858
  • Loading branch information
guskovaue authored Aug 11, 2023
1 parent 00ffe1d commit 04d8a26
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ const findTestUtils = (
supertest: SuperTest<Test>,
supertestWithoutAuth: any
) => {
// FLAKY: https://github.com/elastic/kibana/issues/148660
describe.skip(describeType, () => {
describe(describeType, () => {
afterEach(() => objectRemover.removeAll());

for (const scenario of UserAtSpaceScenarios) {
Expand Down Expand Up @@ -60,6 +59,8 @@ const findTestUtils = (
})
)
.expect(200);
objectRemover.add(space.id, createdAlert.id, 'rule', 'alerting');

const response = await supertestWithoutAuth
.get(
`${getUrlPrefix(space.id)}/${
Expand Down Expand Up @@ -105,6 +106,7 @@ const findTestUtils = (
id: createdAction.id,
connector_type_id: 'test.noop',
params: {},
uuid: match.actions[0].uuid,
frequency: {
summary: false,
notify_when: 'onThrottleInterval',
Expand All @@ -121,6 +123,7 @@ const findTestUtils = (
notify_when: null,
updated_by: 'elastic',
api_key_owner: 'elastic',
api_key_created_by_user: false,
mute_all: false,
muted_alert_ids: [],
revision: 0,
Expand Down Expand Up @@ -328,6 +331,7 @@ const findTestUtils = (
params: {},
created_by: 'elastic',
throttle: '1m',
api_key_created_by_user: null,
updated_by: 'elastic',
api_key_owner: null,
mute_all: false,
Expand Down

0 comments on commit 04d8a26

Please sign in to comment.