You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ab-testing/cdk/lib/__snapshots__/notificationLambda.test.ts.snap
+14-46Lines changed: 14 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -265,7 +265,10 @@ exports[`The AB testing notification lambda stack > matches the CODE snapshot 1`
265
265
}
266
266
},
267
267
{
268
-
"Action": "ses:SendEmail",
268
+
"Action": [
269
+
"ses:SendEmail",
270
+
"ses:SendRawEmail"
271
+
],
269
272
"Effect": "Allow",
270
273
"Resource": {
271
274
"Fn::Join": [
@@ -383,9 +386,10 @@ exports[`The AB testing notification lambda stack > matches the CODE snapshot 1`
383
386
]
384
387
}
385
388
],
386
-
"AlarmDescription": "Something went wrong notifying test owners of upcoming AB test expiries in the CODE AB Testing Notification Lambda. Please check the logs",
"AlarmDescription": "Something went wrong notifying test owners of upcoming AB test expiries in ab-testing-notification-lambda-CODE. Please check the logs",
390
+
"AlarmName": "AB Testing Notification Failures",
388
391
"ComparisonOperator": "GreaterThanThreshold",
392
+
"DatapointsToAlarm": 1,
389
393
"EvaluationPeriods": 1,
390
394
"Metrics": [
391
395
{
@@ -445,26 +449,6 @@ exports[`The AB testing notification lambda stack > matches the CODE snapshot 1`
445
449
"ReturnData": false
446
450
}
447
451
],
448
-
"OKActions": [
449
-
{
450
-
"Fn::Join": [
451
-
"",
452
-
[
453
-
"arn:aws:sns:eu-west-1:",
454
-
{
455
-
"Ref": "AWS::AccountId"
456
-
},
457
-
":",
458
-
{
459
-
"Fn::GetAtt": [
460
-
"AbTestingNotificationSnsTopicB3559144",
461
-
"TopicName"
462
-
]
463
-
}
464
-
]
465
-
]
466
-
}
467
-
],
468
452
"Tags": [
469
453
{
470
454
"Key": "gu:cdk:version",
@@ -775,7 +759,10 @@ exports[`The AB testing notification lambda stack > matches the PROD snapshot 1`
775
759
}
776
760
},
777
761
{
778
-
"Action": "ses:SendEmail",
762
+
"Action": [
763
+
"ses:SendEmail",
764
+
"ses:SendRawEmail"
765
+
],
779
766
"Effect": "Allow",
780
767
"Resource": {
781
768
"Fn::Join": [
@@ -953,9 +940,10 @@ exports[`The AB testing notification lambda stack > matches the PROD snapshot 1`
953
940
]
954
941
}
955
942
],
956
-
"AlarmDescription": "Something went wrong notifying test owners of upcoming AB test expiries in the PROD AB Testing Notification Lambda. Please check the logs",
"AlarmDescription": "Something went wrong notifying test owners of upcoming AB test expiries in ab-testing-notification-lambda-PROD. Please check the logs",
944
+
"AlarmName": "AB Testing Notification Failures",
958
945
"ComparisonOperator": "GreaterThanThreshold",
946
+
"DatapointsToAlarm": 1,
959
947
"EvaluationPeriods": 1,
960
948
"Metrics": [
961
949
{
@@ -1015,26 +1003,6 @@ exports[`The AB testing notification lambda stack > matches the PROD snapshot 1`
alarmDescription: `Something went wrong notifying test owners of upcoming AB test expiries in the ${props.stage} AB Testing Notification Lambda. Please check the logs`,
66
-
okAction: true,
63
+
alarmName: "AB Testing Notification Failures",
64
+
alarmDescription: `Something went wrong notifying test owners of upcoming AB test expiries in ${appName}-${props.stage}. Please check the logs`,
0 commit comments