Set containment alert recovery action group to 'No longer contained' (#87182)

This commit is contained in:
Aaron Caldwell 2021-01-04 14:21:20 -07:00 committed by GitHub
parent 8b2690723b
commit 284f422642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -160,6 +160,12 @@ export function getAlertType(logger: Logger): GeoContainmentAlertType {
id: GEO_CONTAINMENT_ID,
name: alertTypeName,
actionGroups: [{ id: ActionGroupId, name: actionGroupName }],
recoveryActionGroup: {
id: 'notGeoContained',
name: i18n.translate('xpack.stackAlerts.geoContainment.notGeoContained', {
defaultMessage: 'No longer contained',
}),
},
defaultActionGroupId: ActionGroupId,
executor: getGeoContainmentExecutor(logger),
producer: STACK_ALERTS_FEATURE_ID,

View file

@ -18,6 +18,10 @@ describe('alertType', () => {
expect(alertType.actionGroups).toEqual([
{ id: 'Tracked entity contained', name: 'Tracking containment met' },
]);
expect(alertType.recoveryActionGroup).toEqual({
id: 'notGeoContained',
name: 'No longer contained',
});
expect(alertType.actionVariables).toMatchSnapshot();
});