Skip to content

Commit 5e9fd53

Browse files
committed
update unittest for the construct to reflect v1.87 changes
1 parent 73c9009 commit 5e9fd53

5 files changed

+25
-25
lines changed

Diff for: source/patterns/@aws-solutions-constructs/aws-lambda-sagemakerendpoint/test/__snapshots__/aws-lambda-sagemakerendpoint.test.js.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ Object {
560560
},
561561
},
562562
"Resources": Object {
563-
"ReplaceEndpointDefaultSecurityGroupCF0CCAF1": Object {
563+
"ReplaceEndpointDefaultSecurityGroupsecuritygroupB97DD1AF": Object {
564564
"Metadata": Object {
565565
"cfn_nag": Object {
566566
"rules_to_suppress": Array [
@@ -576,7 +576,7 @@ Object {
576576
},
577577
},
578578
"Properties": Object {
579-
"GroupDescription": "Default/ReplaceEndpointDefaultSecurityGroup",
579+
"GroupDescription": "Default/ReplaceEndpointDefaultSecurityGroup-security-group",
580580
"SecurityGroupEgress": Array [
581581
Object {
582582
"CidrIp": "0.0.0.0/0",
@@ -775,7 +775,7 @@ Object {
775775
"SecurityGroupIds": Array [
776776
Object {
777777
"Fn::GetAtt": Array [
778-
"ReplaceEndpointDefaultSecurityGroupCF0CCAF1",
778+
"ReplaceEndpointDefaultSecurityGroupsecuritygroupB97DD1AF",
779779
"GroupId",
780780
],
781781
},
@@ -1054,7 +1054,7 @@ Object {
10541054
"SecurityGroupIds": Array [
10551055
Object {
10561056
"Fn::GetAtt": Array [
1057-
"testlambdasagemakerReplaceDefaultSecurityGroup8B1F22EE",
1057+
"testlambdasagemakerReplaceDefaultSecurityGroupsecuritygroupB2FD7810",
10581058
"GroupId",
10591059
],
10601060
},
@@ -1178,7 +1178,7 @@ Object {
11781178
},
11791179
"Type": "AWS::IAM::Policy",
11801180
},
1181-
"testlambdasagemakerReplaceDefaultSecurityGroup8B1F22EE": Object {
1181+
"testlambdasagemakerReplaceDefaultSecurityGroupsecuritygroupB2FD7810": Object {
11821182
"Metadata": Object {
11831183
"cfn_nag": Object {
11841184
"rules_to_suppress": Array [
@@ -1194,7 +1194,7 @@ Object {
11941194
},
11951195
},
11961196
"Properties": Object {
1197-
"GroupDescription": "Default/test-lambda-sagemaker/ReplaceDefaultSecurityGroup",
1197+
"GroupDescription": "Default/test-lambda-sagemaker/ReplaceDefaultSecurityGroup-security-group",
11981198
"SecurityGroupEgress": Array [
11991199
Object {
12001200
"CidrIp": "0.0.0.0/0",

Diff for: source/patterns/@aws-solutions-constructs/aws-lambda-sagemakerendpoint/test/aws-lambda-sagemakerendpoint.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test('Pattern deployment with new Lambda function, new Sagemaker endpoint, deplo
5757
VpcConfig: {
5858
SecurityGroupIds: [
5959
{
60-
'Fn::GetAtt': ['testlambdasagemakerReplaceDefaultSecurityGroup8B1F22EE', 'GroupId'],
60+
'Fn::GetAtt': ['testlambdasagemakerReplaceDefaultSecurityGroupsecuritygroupB2FD7810', 'GroupId'],
6161
},
6262
],
6363
SubnetIds: [

Diff for: source/patterns/@aws-solutions-constructs/aws-lambda-sagemakerendpoint/test/integ.deployFunctionWithVPCandCustomRole.expected.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,10 @@
324324
}
325325
}
326326
},
327-
"testlambdasagemakerReplaceDefaultSecurityGroup8B1F22EE": {
327+
"testlambdasagemakerReplaceDefaultSecurityGroupsecuritygroupB2FD7810": {
328328
"Type": "AWS::EC2::SecurityGroup",
329329
"Properties": {
330-
"GroupDescription": "test-lambda-sagemakerendpoint/test-lambda-sagemaker/ReplaceDefaultSecurityGroup",
330+
"GroupDescription": "test-lambda-sagemakerendpoint/test-lambda-sagemaker/ReplaceDefaultSecurityGroup-security-group",
331331
"SecurityGroupEgress": [
332332
{
333333
"CidrIp": "0.0.0.0/0",
@@ -422,7 +422,7 @@
422422
"SecurityGroupIds": [
423423
{
424424
"Fn::GetAtt": [
425-
"testlambdasagemakerReplaceDefaultSecurityGroup8B1F22EE",
425+
"testlambdasagemakerReplaceDefaultSecurityGroupsecuritygroupB2FD7810",
426426
"GroupId"
427427
]
428428
}
@@ -781,7 +781,7 @@
781781
"SecurityGroupIds": [
782782
{
783783
"Fn::GetAtt": [
784-
"ReplaceEndpointDefaultSecurityGroupCF0CCAF1",
784+
"ReplaceEndpointDefaultSecurityGroupsecuritygroupB97DD1AF",
785785
"GroupId"
786786
]
787787
}
@@ -800,10 +800,10 @@
800800
"VpcEndpointType": "Interface"
801801
}
802802
},
803-
"ReplaceEndpointDefaultSecurityGroupCF0CCAF1": {
803+
"ReplaceEndpointDefaultSecurityGroupsecuritygroupB97DD1AF": {
804804
"Type": "AWS::EC2::SecurityGroup",
805805
"Properties": {
806-
"GroupDescription": "test-lambda-sagemakerendpoint/ReplaceEndpointDefaultSecurityGroup",
806+
"GroupDescription": "test-lambda-sagemakerendpoint/ReplaceEndpointDefaultSecurityGroup-security-group",
807807
"SecurityGroupEgress": [
808808
{
809809
"CidrIp": "0.0.0.0/0",

Diff for: source/patterns/@aws-solutions-constructs/aws-lambda-sagemakerendpoint/test/integ.deployFunctionWithVpc.expected.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,10 @@
550550
}
551551
}
552552
},
553-
"testlambdasagemakerReplaceDefaultSecurityGroup8B1F22EE": {
553+
"testlambdasagemakerReplaceDefaultSecurityGroupsecuritygroupB2FD7810": {
554554
"Type": "AWS::EC2::SecurityGroup",
555555
"Properties": {
556-
"GroupDescription": "test-lambda-sagemakerendpoint/test-lambda-sagemaker/ReplaceDefaultSecurityGroup",
556+
"GroupDescription": "test-lambda-sagemakerendpoint/test-lambda-sagemaker/ReplaceDefaultSecurityGroup-security-group",
557557
"SecurityGroupEgress": [
558558
{
559559
"CidrIp": "0.0.0.0/0",
@@ -648,7 +648,7 @@
648648
"SecurityGroupIds": [
649649
{
650650
"Fn::GetAtt": [
651-
"testlambdasagemakerReplaceDefaultSecurityGroup8B1F22EE",
651+
"testlambdasagemakerReplaceDefaultSecurityGroupsecuritygroupB2FD7810",
652652
"GroupId"
653653
]
654654
}
@@ -1007,7 +1007,7 @@
10071007
"SecurityGroupIds": [
10081008
{
10091009
"Fn::GetAtt": [
1010-
"ReplaceEndpointDefaultSecurityGroupCF0CCAF1",
1010+
"ReplaceEndpointDefaultSecurityGroupsecuritygroupB97DD1AF",
10111011
"GroupId"
10121012
]
10131013
}
@@ -1026,10 +1026,10 @@
10261026
"VpcEndpointType": "Interface"
10271027
}
10281028
},
1029-
"ReplaceEndpointDefaultSecurityGroupCF0CCAF1": {
1029+
"ReplaceEndpointDefaultSecurityGroupsecuritygroupB97DD1AF": {
10301030
"Type": "AWS::EC2::SecurityGroup",
10311031
"Properties": {
1032-
"GroupDescription": "test-lambda-sagemakerendpoint/ReplaceEndpointDefaultSecurityGroup",
1032+
"GroupDescription": "test-lambda-sagemakerendpoint/ReplaceEndpointDefaultSecurityGroup-security-group",
10331033
"SecurityGroupEgress": [
10341034
{
10351035
"CidrIp": "0.0.0.0/0",

Diff for: source/patterns/@aws-solutions-constructs/aws-lambda-sagemakerendpoint/test/integ.deployFunctionWithexistingVpc.expected.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@
715715
"SecurityGroupIds": [
716716
{
717717
"Fn::GetAtt": [
718-
"ReplaceEndpointDefaultSecurityGroupCF0CCAF1",
718+
"ReplaceEndpointDefaultSecurityGroupsecuritygroupB97DD1AF",
719719
"GroupId"
720720
]
721721
}
@@ -734,10 +734,10 @@
734734
"VpcEndpointType": "Interface"
735735
}
736736
},
737-
"ReplaceEndpointDefaultSecurityGroupCF0CCAF1": {
737+
"ReplaceEndpointDefaultSecurityGroupsecuritygroupB97DD1AF": {
738738
"Type": "AWS::EC2::SecurityGroup",
739739
"Properties": {
740-
"GroupDescription": "test-lambda-sagemakerendpoint/ReplaceEndpointDefaultSecurityGroup",
740+
"GroupDescription": "test-lambda-sagemakerendpoint/ReplaceEndpointDefaultSecurityGroup-security-group",
741741
"SecurityGroupEgress": [
742742
{
743743
"CidrIp": "0.0.0.0/0",
@@ -1341,10 +1341,10 @@
13411341
}
13421342
}
13431343
},
1344-
"testlambdasagemakerReplaceDefaultSecurityGroup8B1F22EE": {
1344+
"testlambdasagemakerReplaceDefaultSecurityGroupsecuritygroupB2FD7810": {
13451345
"Type": "AWS::EC2::SecurityGroup",
13461346
"Properties": {
1347-
"GroupDescription": "test-lambda-sagemakerendpoint/test-lambda-sagemaker/ReplaceDefaultSecurityGroup",
1347+
"GroupDescription": "test-lambda-sagemakerendpoint/test-lambda-sagemaker/ReplaceDefaultSecurityGroup-security-group",
13481348
"SecurityGroupEgress": [
13491349
{
13501350
"CidrIp": "0.0.0.0/0",
@@ -1439,7 +1439,7 @@
14391439
"SecurityGroupIds": [
14401440
{
14411441
"Fn::GetAtt": [
1442-
"testlambdasagemakerReplaceDefaultSecurityGroup8B1F22EE",
1442+
"testlambdasagemakerReplaceDefaultSecurityGroupsecuritygroupB2FD7810",
14431443
"GroupId"
14441444
]
14451445
}

0 commit comments

Comments
 (0)