@@ -3,13 +3,15 @@ import { Template } from 'aws-cdk-lib/assertions';
3
3
import { Architecture , Runtime , RuntimeFamily } from 'aws-cdk-lib/aws-lambda' ;
4
4
import { LambdaPowertoolsLayerPythonV3 , constructBuildArgs } from '../src' ;
5
5
6
+ const defaultPythonVersion = 'Python 3.12' ;
7
+
6
8
describe ( 'with no configuration the construct' , ( ) => {
7
9
const stack = new Stack ( ) ;
8
10
new LambdaPowertoolsLayerPythonV3 ( stack , 'PowertoolsLayerPythonV3' ) ;
9
11
const template = Template . fromStack ( stack ) ;
10
12
test ( 'synthesizes successfully' , ( ) => {
11
13
template . hasResourceProperties ( 'AWS::Lambda::LayerVersion' , {
12
- Description : ' Powertools for AWS Lambda (Python) V3 [x86_64] latest version' ,
14
+ Description : ` Powertools for AWS Lambda (Python) V3 [x86_64 - ${ defaultPythonVersion } ] latest version` ,
13
15
} ) ;
14
16
} ) ;
15
17
@@ -106,7 +108,7 @@ describe('with arm64 architecture', () => {
106
108
const template = Template . fromStack ( stack ) ;
107
109
test ( 'synthesizes successfully' , ( ) => {
108
110
template . hasResourceProperties ( 'AWS::Lambda::LayerVersion' , {
109
- Description : ' Powertools for AWS Lambda (Python) V3 [arm64] latest version' ,
111
+ Description : ` Powertools for AWS Lambda (Python) V3 [arm64 - ${ defaultPythonVersion } ] latest version` ,
110
112
CompatibleArchitectures : [ 'arm64' ] ,
111
113
} ) ;
112
114
} ) ;
@@ -156,7 +158,7 @@ describe('with version configuration the construct', () => {
156
158
'AWS::Lambda::LayerVersion' ,
157
159
{
158
160
Description :
159
- ' Powertools for AWS Lambda (Python) V3 [x86_64] version 1.21.0' ,
161
+ ` Powertools for AWS Lambda (Python) V3 [x86_64 - ${ defaultPythonVersion } ] version 1.21.0` ,
160
162
} ,
161
163
) ;
162
164
} ) ;
@@ -184,7 +186,7 @@ describe('with version configuration the construct', () => {
184
186
'AWS::Lambda::LayerVersion' ,
185
187
{
186
188
Description :
187
- ' Powertools for AWS Lambda (Python) V3 [x86_64] with extra dependencies version 2.40.0' ,
189
+ ` Powertools for AWS Lambda (Python) V3 [x86_64 - ${ defaultPythonVersion } ] with extra dependencies version 2.40.0` ,
188
190
} ,
189
191
) ;
190
192
} ) ;
@@ -200,7 +202,7 @@ describe('with version configuration the construct', () => {
200
202
'AWS::Lambda::LayerVersion' ,
201
203
{
202
204
Description :
203
- ' Powertools for AWS Lambda (Python) V3 [x86_64] with extra dependencies latest version' ,
205
+ ` Powertools for AWS Lambda (Python) V3 [x86_64 - ${ defaultPythonVersion } ] with extra dependencies latest version` ,
204
206
} ,
205
207
) ;
206
208
} ) ;
0 commit comments