Skip to content

Commit a5a9fb0

Browse files
committed
update base integ test and snapshot
1 parent 636c635 commit a5a9fb0

File tree

5 files changed

+50
-4
lines changed

5 files changed

+50
-4
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack.js.snapshot/DualStackVpc.assets.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack.js.snapshot/DualStackVpc.template.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,21 @@
729729
"DualStackProtocolVpcipv6cidr449C49CD"
730730
]
731731
},
732+
"DualStackProtocolVpcPriv1Subnet1Nat649573F0A7": {
733+
"Type": "AWS::EC2::Route",
734+
"Properties": {
735+
"DestinationIpv6CidrBlock": "64:ff9b::/96",
736+
"NatGatewayId": {
737+
"Ref": "DualStackProtocolVpcPub1Subnet1NATGateway241D9A98"
738+
},
739+
"RouteTableId": {
740+
"Ref": "DualStackProtocolVpcPriv1Subnet1RouteTableB9D9FD11"
741+
}
742+
},
743+
"DependsOn": [
744+
"DualStackProtocolVpcipv6cidr449C49CD"
745+
]
746+
},
732747
"DualStackProtocolVpcPriv1Subnet2SubnetBC65773F": {
733748
"Type": "AWS::EC2::Subnet",
734749
"Properties": {

packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack.js.snapshot/manifest.json

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack.js.snapshot/tree.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha';
55
const app = new App();
66
const stack = new Stack(app, 'DualStackVpc');
77

8-
new ec2.Vpc(stack, 'DualStackProtocolVpc', {
8+
const natProvider = ec2.NatProvider.gateway();
9+
const vpc = new ec2.Vpc(stack, 'DualStackProtocolVpc', {
910
ipProtocol: ec2.IpProtocol.DUAL_STACK,
1011
subnetConfiguration: [
1112
{
@@ -21,8 +22,12 @@ new ec2.Vpc(stack, 'DualStackProtocolVpc', {
2122
subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS,
2223
},
2324
],
25+
natGatewayProvider: natProvider,
2426
});
2527

28+
const natGatewayId = natProvider.configuredGateways[0].gatewayId;
29+
(vpc.privateSubnets[0] as ec2.PrivateSubnet).addIpv6Nat64Route(natGatewayId);
30+
2631
new IntegTest(app, 'DualStackTesting', {
2732
testCases: [stack],
2833
});

0 commit comments

Comments
 (0)