Skip to content

Commit 323de9d

Browse files
committed
Fixing functional tests
1 parent e3cf77a commit 323de9d

File tree

1 file changed

+4
-1
lines changed
  • x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting

1 file changed

+4
-1
lines changed

x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/alerts.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ instanceStateValue: true
214214
await validateEventLog({
215215
spaceId: space.id,
216216
alertId,
217+
ruleTypeId: 'test.always-firing',
217218
outcome: 'success',
218219
message: `alert executed: test.always-firing:${alertId}: 'abc'`,
219220
});
@@ -1244,13 +1245,14 @@ instanceStateValue: true
12441245
interface ValidateEventLogParams {
12451246
spaceId: string;
12461247
alertId: string;
1248+
ruleTypeId: string;
12471249
outcome: string;
12481250
message: string;
12491251
errorMessage?: string;
12501252
}
12511253

12521254
async function validateEventLog(params: ValidateEventLogParams): Promise<void> {
1253-
const { spaceId, alertId, outcome, message, errorMessage } = params;
1255+
const { spaceId, alertId, ruleTypeId, outcome, message, errorMessage } = params;
12541256

12551257
const events: IValidatedEvent[] = await retry.try(async () => {
12561258
return await getEventLog({
@@ -1291,6 +1293,7 @@ instanceStateValue: true
12911293
type: 'alert',
12921294
id: alertId,
12931295
namespace: spaceId,
1296+
type_id: ruleTypeId,
12941297
},
12951298
]);
12961299

0 commit comments

Comments
 (0)