mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Add Lambda fully qualified ARNs to expected output
This commit is contained in:
parent
1cc3c2c669
commit
ed156155f7
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user