@@ -33,7 +33,7 @@ describe('When node user agent config layer is injected as an aspect', () => {
3333 template . resourceCountIs ( 'AWS::Lambda::LayerVersion' , 1 ) ;
3434 template . hasResourceProperties ( 'AWS::Lambda::LayerVersion' , {
3535 Content : Match . anyValue ( ) ,
36- CompatibleRuntimes : [ 'nodejs16.x' , ' nodejs18.x'] ,
36+ CompatibleRuntimes : [ 'nodejs18.x' ] ,
3737 Description : 'This layer configures AWS Node SDK initialization to send user agent information'
3838 } ) ;
3939
@@ -64,7 +64,7 @@ describe('When local build fails', () => {
6464 template . resourceCountIs ( 'AWS::Lambda::LayerVersion' , 1 ) ;
6565 template . hasResourceProperties ( 'AWS::Lambda::LayerVersion' , {
6666 Content : Match . anyValue ( ) ,
67- CompatibleRuntimes : [ 'nodejs16.x' , ' nodejs18.x'] ,
67+ CompatibleRuntimes : [ 'nodejs18.x' ] ,
6868 Description : 'This layer configures AWS Node SDK initialization to send user agent information'
6969 } ) ;
7070 } ) ;
@@ -86,13 +86,13 @@ describe('When a non-supported runtime is provided', () => {
8686 new NodeUserAgentLayer ( stack , 'AWSUserAgentConfigLayer' , {
8787 entry : '../lambda/layers/aws-node-user-agent-config' ,
8888 description : 'This layer configures AWS Node SDK initialization to send user agent information' ,
89- compatibleRuntimes : [ lambda . Runtime . NODEJS_16_X , lambda . Runtime . NODEJS_18_X ]
89+ compatibleRuntimes : [ lambda . Runtime . NODEJS_18_X ]
9090 } )
9191 ]
9292 } ) ;
9393 } catch ( error ) {
9494 expect ( ( error as Error ) . message ) . toEqual (
95- 'This lambda function uses a runtime that is incompatible with this layer (python3.11 is not in [nodejs16.x, nodejs18.x])'
95+ 'This lambda function uses a runtime that is incompatible with this layer (python3.11 is not in [nodejs18.x])'
9696 ) ;
9797 }
9898 } ) ;
@@ -108,13 +108,13 @@ describe('When a non-supported runtime is provided', () => {
108108 new NodeUserAgentLayer ( stack , 'AWSUserAgentConfigLayer' , {
109109 entry : '../lambda/layers/aws-node-user-agent-config' ,
110110 description : 'This layer configures AWS Node SDK initialization to send user agent information' ,
111- compatibleRuntimes : [ lambda . Runtime . NODEJS_16_X , lambda . Runtime . NODEJS_18_X ]
111+ compatibleRuntimes : [ lambda . Runtime . NODEJS_18_X ]
112112 } )
113113 ]
114114 } ) ;
115115 } catch ( error ) {
116116 expect ( ( error as Error ) . message ) . toEqual (
117- 'This lambda function uses a runtime that is incompatible with this layer (nodejs12.x is not in [nodejs16.x, nodejs18.x])'
117+ 'This lambda function uses a runtime that is incompatible with this layer (nodejs12.x is not in [nodejs18.x])'
118118 ) ;
119119 }
120120 } ) ;
@@ -130,7 +130,7 @@ function buildStack(): cdk.Stack {
130130 new NodeUserAgentLayer ( stack , 'AWSUserAgentConfigLayer' , {
131131 entry : '../lambda/layers/aws-node-user-agent-config' ,
132132 description : 'This layer configures AWS Node SDK initialization to send user agent information' ,
133- compatibleRuntimes : [ lambda . Runtime . NODEJS_16_X , lambda . Runtime . NODEJS_18_X ]
133+ compatibleRuntimes : [ lambda . Runtime . NODEJS_18_X ]
134134 } )
135135 ]
136136 } ) ;
0 commit comments