Skip to content

Commit

Permalink
fix find tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guskovaue committed Aug 11, 2023
1 parent 81ca020 commit 33c83f8
Showing 1 changed file with 8 additions and 4 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 All @@ -129,8 +132,8 @@ const findTestUtils = (
...(match.last_run ? { last_run: match.last_run } : {}),
...(describeType === 'internal'
? {
monitoring: match.monitoring,
snooze_schedule: match.snooze_schedule,
monitoring: match?.monitoring,
snooze_schedule: match?.snooze_schedule,
...(hasActiveSnoozes && { active_snoozes: activeSnoozes }),
}
: {}),
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 33c83f8

Please sign in to comment.