You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'runtime must be one of the following: NODEJS_16_X, NODEJS_18_X, NODEJS_20_X, GO_1_X_PROVIDED_AL2023, PYTHON_3_8, PYTHON_3_9, PYTHON_3_10, PYTHON_3_11, PYTHON_3_12'
306
+
)
307
+
);
308
+
});
309
+
310
+
voidit('sets not valid go runtime, entry empty',()=>{
311
+
assert.throws(
312
+
()=>
313
+
defineFunction({
314
+
runtime: 'GO_1_X_PROVIDED_AL2023',
315
+
}).getInstance(getInstanceProps),
316
+
newError(
317
+
'entry must be set for custom runtime "GO_1_X_PROVIDED_AL2023"'
voidit('sets not valid python runtime not valid runtime version',()=>{
335
+
assert.throws(
336
+
()=>
337
+
defineFunction({
338
+
entry: './test-assets/python-lambda/',
339
+
runtime: 'PYTHON_3_7'asRuntimeType,
340
+
}).getInstance(getInstanceProps),
341
+
newError(
342
+
'runtime must be one of the following: NODEJS_16_X, NODEJS_18_X, NODEJS_20_X, GO_1_X_PROVIDED_AL2023, PYTHON_3_8, PYTHON_3_9, PYTHON_3_10, PYTHON_3_11, PYTHON_3_12'
343
+
)
344
+
);
345
+
});
346
+
347
+
voidit('sets not valid python runtime empty entry',()=>{
348
+
assert.throws(
349
+
()=>
350
+
defineFunction({
351
+
runtime: 'PYTHON_3_8',
352
+
}).getInstance(getInstanceProps),
353
+
newError('entry must be set for custom runtime "PYTHON_3_8"')
newError('runtime must be one of the following: 16, 18, 20')
375
+
newError(
376
+
'runtime must be one of the following: NODEJS_16_X, NODEJS_18_X, NODEJS_20_X, GO_1_X_PROVIDED_AL2023, PYTHON_3_8, PYTHON_3_9, PYTHON_3_10, PYTHON_3_11, PYTHON_3_12'
0 commit comments