mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix(AWS Lambda): Fix runtimeManagment handling (#11778)
This commit is contained in:
parent
8e244d5abc
commit
8db2f4cbc5
@ -27,7 +27,7 @@ const defaultCors = {
|
||||
};
|
||||
const runtimeManagementMap = new Map([
|
||||
['auto', 'Auto'],
|
||||
['onFunctionUpdate', 'Function update'],
|
||||
['onFunctionUpdate', 'FunctionUpdate'],
|
||||
['manual', 'Manual'],
|
||||
]);
|
||||
|
||||
|
||||
@ -1351,7 +1351,7 @@ describe('lib/plugins/aws/package/compile/functions/index.test.js', () => {
|
||||
const { UpdateRuntimeOn } =
|
||||
cfResources[naming.getLambdaLogicalId('foo')].Properties.RuntimeManagementConfig;
|
||||
|
||||
expect(UpdateRuntimeOn).to.equal('Function update');
|
||||
expect(UpdateRuntimeOn).to.equal('FunctionUpdate');
|
||||
});
|
||||
|
||||
it('should support `provider.versionFunctions: false`', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user