File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/aws-cdk-lib/aws-apigateway/test/integrations Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ describe('AlbIntegration', () => {
99 test ( 'minimal setup with ALB' , ( ) => {
1010 // GIVEN
1111 const stack = new cdk . Stack ( ) ;
12- const vpc = new ec2 . Vpc ( stack , 'VPC ' ) ;
13- const alb = new elbv2 . ApplicationLoadBalancer ( stack , 'ALB ' , { vpc } ) ;
12+ const vpc = new ec2 . Vpc ( stack , 'Vpc ' ) ;
13+ const alb = new elbv2 . ApplicationLoadBalancer ( stack , 'Alb ' , { vpc } ) ;
1414
15- const api = new apigateway . RestApi ( stack , 'my-api ' ) ;
15+ const api = new apigateway . RestApi ( stack , 'Api ' ) ;
1616
1717 // WHEN
1818 const integ = new apigateway . AlbIntegration ( alb ) ;
@@ -28,7 +28,9 @@ describe('AlbIntegration', () => {
2828 } ) ;
2929
3030 // VPC Link V2 should be created
31- Template . fromStack ( stack ) . resourceCountIs ( 'AWS::ApiGatewayV2::VpcLink' , 1 ) ;
31+ Template . fromStack ( stack ) . hasResourceProperties ( 'AWS::ApiGatewayV2::VpcLink' , {
32+ Name : 'VpcLink-Vpc' ,
33+ } ) ;
3234 } ) ;
3335
3436 test ( 'with existing VPC Link V2' , ( ) => {
You can’t perform that action at this time.
0 commit comments