Skip to content

Commit

Permalink
remove unwanted change
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Oct 18, 2024
1 parent 9701509 commit ce2545c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/aws-cdk-lib/aws-ec2/test/vpc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import {
SecurityGroup,
UserData,
} from '../lib';
import { networkInterfaces } from 'os';

describe('vpc', () => {
describe('When creating a VPC', () => {
Expand Down Expand Up @@ -1764,7 +1765,6 @@ describe('vpc', () => {
test.each([
[true, true],
[false, false],
[undefined, Match.absent()],
])('Can instantiate NatInstanceProviderV2 with associatePublicIpAddress', (input, value) => {
const stack = getTestStack();
new Vpc(stack, 'Vpc', {
Expand All @@ -1786,9 +1786,13 @@ describe('vpc', () => {
],
});

Template.fromStack(stack).hasResourceProperties('AWS::EC2::Instance', {
AssociatePublicIpAddress: value,
});
Template.fromStack(stack).hasResource('AWS::EC2::Instance', Match.objectLike({
Properties: {
NetworkInterfaces: [{
AssociatePublicIpAddress: value
}],
}
}))
});

test('Can instantiate NatInstanceProvider directly with new', () => {
Expand Down

0 comments on commit ce2545c

Please sign in to comment.