From ed156155f783f7af0beade8fd47ecd1fd3f595b2 Mon Sep 17 00:00:00 2001 From: "Ryan S. Brown" Date: Thu, 17 Nov 2016 12:59:14 -0500 Subject: [PATCH] Add Lambda fully qualified ARNs to expected output --- .../aws/deploy/compile/functions/index.test.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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();