Skip to content

Commit 4588e3d

Browse files
committed
fixed recovery test in pagerduty
1 parent 74bbfdd commit 4588e3d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

x-pack/plugins/triggers_actions_ui/public/application/lib/get_defaults_for_action_params.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { ResolvedActionGroup } from '../../../../alerts/common';
7+
import { RecoveredActionGroup } from '../../../../alerts/common';
88
import { AlertProvidedActionVariables } from './action_variables';
99
import { getDefaultsForActionParams } from './get_defaults_for_action_params';
1010

@@ -16,8 +16,8 @@ describe('getDefaultsForActionParams', () => {
1616
});
1717
});
1818

19-
test('pagerduty defaults for resolved action group', async () => {
20-
expect(getDefaultsForActionParams('.pagerduty', ResolvedActionGroup.id)).toEqual({
19+
test('pagerduty defaults for recovered action group', async () => {
20+
expect(getDefaultsForActionParams('.pagerduty', RecoveredActionGroup.id)).toEqual({
2121
dedupKey: `{{${AlertProvidedActionVariables.alertId}}}:{{${AlertProvidedActionVariables.alertInstanceId}}}`,
2222
eventAction: 'resolve',
2323
});

x-pack/plugins/triggers_actions_ui/public/application/lib/get_defaults_for_action_params.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { AlertActionParam, ResolvedActionGroup } from '../../../../alerts/common';
7+
import { AlertActionParam, RecoveredActionGroup } from '../../../../alerts/common';
88
import { AlertProvidedActionVariables } from './action_variables';
99

1010
export const getDefaultsForActionParams = (
@@ -17,7 +17,7 @@ export const getDefaultsForActionParams = (
1717
dedupKey: `{{${AlertProvidedActionVariables.alertId}}}:{{${AlertProvidedActionVariables.alertInstanceId}}}`,
1818
eventAction: 'trigger',
1919
};
20-
if (actionGroupId === ResolvedActionGroup.id) {
20+
if (actionGroupId === RecoveredActionGroup.id) {
2121
pagerDutyDefaults.eventAction = 'resolve';
2222
}
2323
return pagerDutyDefaults;

0 commit comments

Comments
 (0)