Skip to content

Commit

Permalink
Add volumeMountPath to tests, Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Dec 19, 2024
1 parent 6f6082b commit 9fea171
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
28 changes: 26 additions & 2 deletions src/constructs/ecs/__snapshots__/ecs-task.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,15 @@ exports[`The GuEcsTask pattern should create the correct resources with lots of
},
},
"Memory": 1024,
"MountPoints": [
{
"ContainerPath": "/opt/testing",
"ReadOnly": false,
"SourceVolume": "ecs-test-volume",
},
],
"Name": "test-ecs-task-ecs-test-TaskContainer",
"ReadonlyRootFilesystem": false,
"ReadonlyRootFilesystem": true,
},
],
"Cpu": "1024",
Expand Down Expand Up @@ -531,6 +538,11 @@ exports[`The GuEcsTask pattern should create the correct resources with lots of
"Arn",
],
},
"Volumes": [
{
"Name": "ecs-test-volume",
},
],
},
"Type": "AWS::ECS::TaskDefinition",
},
Expand Down Expand Up @@ -1191,8 +1203,15 @@ exports[`The GuEcsTask pattern should support overriding the subnets used by the
},
},
"Memory": 1024,
"MountPoints": [
{
"ContainerPath": "/opt/testing",
"ReadOnly": false,
"SourceVolume": "ecs-test-volume",
},
],
"Name": "test-ecs-task-ecs-test-TaskContainer",
"ReadonlyRootFilesystem": false,
"ReadonlyRootFilesystem": true,
},
],
"Cpu": "1024",
Expand Down Expand Up @@ -1243,6 +1262,11 @@ exports[`The GuEcsTask pattern should support overriding the subnets used by the
"Arn",
],
},
"Volumes": [
{
"Name": "ecs-test-volume",
},
],
},
"Type": "AWS::ECS::TaskDefinition",
},
Expand Down
1 change: 1 addition & 0 deletions src/constructs/ecs/ecs-task.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe("The GuEcsTask pattern", () => {
cpu: 1024,
memory: 1024,
storage: 30,
volumeMountPath: "/opt/testing",
monitoringConfiguration: { snsTopicArn: "arn:something:else:here:we:goalarm-topic", noMonitoring: false },
taskCommand: `echo "yo ho row ho it's a pirates life for me"`,
securityGroups: [securityGroup(stack, app)],
Expand Down

0 comments on commit 9fea171

Please sign in to comment.