diff --git a/lib/plugins/aws/deploy/compile/functions/index.test.js b/lib/plugins/aws/deploy/compile/functions/index.test.js index 8d5be7fdf..ed6e47ad8 100644 --- a/lib/plugins/aws/deploy/compile/functions/index.test.js +++ b/lib/plugins/aws/deploy/compile/functions/index.test.js @@ -25,8 +25,8 @@ describe('AwsCompileFunctions', () => { Outputs: {}, }; - const serviceArtifact = 'artifact.zip' - const individualArtifact = 'test.zip' + const serviceArtifact = 'artifact.zip'; + const individualArtifact = 'test.zip'; // The contents of the test artifacts need to be predictable so the hashes stay the same serverless.utils.writeFileSync(serviceArtifact, 'foobar'); serverless.utils.writeFileSync(individualArtifact, 'barbaz'); @@ -798,10 +798,20 @@ describe('AwsCompileFunctions', () => { Description: 'Lambda function info', Value: { 'Fn::GetAtt': ['FuncLambdaFunction', 'Arn'] }, }, + FuncLambdaFunctionQualifiedArn: { + Description: 'Current Lambda function version', + Value: { Ref: 'FuncLambdaFunctionVersionw6uP8Tcg6K2QR905Rms8iXTlksL6OD1KOWBxTK7wxPI' }, + }, AnotherFuncLambdaFunctionArn: { Description: 'Lambda function info', Value: { 'Fn::GetAtt': ['AnotherFuncLambdaFunction', 'Arn'] }, }, + AnotherFuncLambdaFunctionQualifiedArn: { + Description: 'Current Lambda function version', + Value: { + Ref: 'AnotherFuncLambdaFunctionVersionw6uP8Tcg6K2QR905Rms8iXTlksL6OD1KOWBxTK7wxPI', + }, + }, }; awsCompileFunctions.compileFunctions();