Add Lambda fully qualified ARNs to expected output

This commit is contained in:
Ryan S. Brown 2016-11-17 12:59:14 -05:00
parent 1cc3c2c669
commit ed156155f7

View File

@ -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();