Skip to content

Commit

Permalink
Fixed unit tests and snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
Esen Sagynov committed Mar 22, 2024
1 parent be9ec10 commit 0e75d9e
Show file tree
Hide file tree
Showing 27 changed files with 210 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('EcsDeploymentConfig', () => {
const { service, prodTargetGroup, testTargetGroup, prodListener, testListener } = createPrereqResources(stack);

const customApplication = new codedeploy.EcsApplication(stack, 'CustomApplication', {
applicationName: 'My Custom Application',
applicationName: 'My-Custom-Application',
});

new EcsDeploymentGroup(stack, 'DeploymentGroup', {
Expand All @@ -110,7 +110,7 @@ describe('EcsDeploymentConfig', () => {
expectCDK(stack).to(
haveResource('AWS::CodeDeploy::Application', {
ComputePlatform: 'ECS',
ApplicationName: 'My Custom Application',
ApplicationName: 'My-Custom-Application',
}),
);

Expand All @@ -129,7 +129,7 @@ describe('EcsDeploymentConfig', () => {
const { service, prodTargetGroup, testTargetGroup, prodListener, testListener } = createPrereqResources(stack);

new EcsDeploymentGroup(stack, 'DeploymentGroup', {
applicationName: 'My Named Application',
applicationName: 'My-Named-Application',
deploymentGroupName: 'My Deployment Group',
ecsServices: [service],
targetGroups: [prodTargetGroup, testTargetGroup],
Expand All @@ -141,7 +141,7 @@ describe('EcsDeploymentConfig', () => {
expectCDK(stack).to(
haveResource('AWS::CodeDeploy::Application', {
ComputePlatform: 'ECS',
ApplicationName: 'My Named Application',
ApplicationName: 'My-Named-Application',
}),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -66,7 +66,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
"Timeout": 300,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -183,7 +183,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -232,7 +232,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -993,7 +993,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1043,7 +1043,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
"Timeout": 300,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1160,7 +1160,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -1209,7 +1209,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -70,15 +70,15 @@ Object {
],
],
},
"Handler": "__entrypoint__.handler",
"Handler": "index.handler",
"MemorySize": 128,
"Role": Object {
"Fn::GetAtt": Array [
"CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -119,7 +119,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
"Timeout": 300,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -236,7 +236,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -285,7 +285,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -1238,6 +1238,7 @@ Object {
"Statement": Array [
Object {
"Action": Array [
"s3:PutBucketPolicy",
"s3:GetBucket*",
"s3:List*",
"s3:DeleteObject*",
Expand Down Expand Up @@ -1402,7 +1403,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1456,15 +1457,15 @@ Object {
],
],
},
"Handler": "__entrypoint__.handler",
"Handler": "index.handler",
"MemorySize": 128,
"Role": Object {
"Fn::GetAtt": Array [
"CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1505,7 +1506,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
"Timeout": 300,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1622,7 +1623,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -1671,7 +1672,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x"",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -2739,6 +2740,7 @@ Object {
"Statement": Array [
Object {
"Action": Array [
"s3:PutBucketPolicy",
"s3:GetBucket*",
"s3:List*",
"s3:DeleteObject*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ Object {
Object {
"Action": Array [
"s3:PutObject",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:Abort*",
],
"Effect": "Allow",
Expand Down Expand Up @@ -683,6 +687,10 @@ Object {
Object {
"Action": Array [
"s3:PutObject",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:Abort*",
],
"Effect": "Allow",
Expand Down Expand Up @@ -1184,6 +1192,10 @@ Object {
Object {
"Action": Array [
"s3:PutObject",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:Abort*",
],
"Effect": "Allow",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ Object {
Object {
"Action": Array [
"s3:PutObject",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:Abort*",
],
"Effect": "Allow",
Expand Down Expand Up @@ -618,6 +622,10 @@ Object {
Object {
"Action": Array [
"s3:PutObject",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:Abort*",
],
"Effect": "Allow",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,10 @@ Object {
"s3:List*",
"s3:DeleteObject*",
"s3:PutObject",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:Abort*",
],
"Effect": "Allow",
Expand Down Expand Up @@ -710,6 +714,10 @@ Object {
"s3:List*",
"s3:DeleteObject*",
"s3:PutObject",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:Abort*",
],
"Effect": "Allow",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ Object {
"s3:List*",
"s3:DeleteObject*",
"s3:PutObject",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:Abort*",
],
"Effect": "Allow",
Expand Down Expand Up @@ -587,6 +591,10 @@ Object {
"s3:List*",
"s3:DeleteObject*",
"s3:PutObject",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:Abort*",
],
"Effect": "Allow",
Expand Down
Loading

0 comments on commit 0e75d9e

Please sign in to comment.