Optimize and clean adding and removing infrastructure logic #224
Annotations
7 errors and 1 warning
|
|
|
test/sls-basic.test.ts#L58
AssertionError: expected false to deeply equal true
- Expected
+ Received
- true
+ false
❯ test/sls-basic.test.ts:58:37
|
|
test/sls-basic.test.ts#L58
AssertionError: expected false to deeply equal true
- Expected
+ Received
- true
+ false
❯ test/sls-basic.test.ts:58:37
|
|
test/sls-basic.test.ts#L45
AssertionError: expected false to deeply equal true
- Expected
+ Received
- true
+ false
❯ test/sls-basic.test.ts:45:37
|
|
test/utils/callLambda.ts#L9
AccessDeniedException: The role defined for the function cannot be assumed by Lambda.
❯ throwDefaultError node_modules/@aws-sdk/client-lambda/node_modules/@smithy/smithy-client/dist-cjs/index.js:388:20
❯ node_modules/@aws-sdk/client-lambda/node_modules/@smithy/smithy-client/dist-cjs/index.js:397:5
❯ de_CommandError node_modules/@aws-sdk/client-lambda/dist-cjs/index.js:4079:14
❯ node_modules/@aws-sdk/client-lambda/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20
❯ node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-cjs/index.js:193:18
❯ node_modules/@aws-sdk/client-lambda/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38
❯ node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22
❯ Module.callLambda test/utils/callLambda.ts:9:23
❯ test/sls-basic.test.ts:42:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { '$fault': 'client', '$metadata': { httpStatusCode: 403, requestId: '54dfaf8e-d92e-4f44-813e-65e20acd4b4a', extendedRequestId: undefined, cfId: undefined, attempts: 1, totalRetryDelay: +0 }, '$response': { statusCode: 403, reason: 'Forbidden', headers: { date: 'Wed, 23 Jul 2025 16:34:09 GMT', 'content-type': 'application/json', 'content-length': '76', connection: 'keep-alive', 'x-amzn-requestid': '54dfaf8e-d92e-4f44-813e-65e20acd4b4a', 'x-amzn-errortype': 'AccessDeniedException' }, body: { _events: { close: undefined, error: 'Function<anonymous>', data: undefined, end: 'Function<responseOnEnd>', readable: undefined }, _readableState: { highWaterMark: 65536, buffer: [], bufferIndex: +0, length: +0, pipes: [], awaitDrainWriters: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: true, dataEmitted: true, errored: null, defaultEncoding: 'utf8', decoder: null, encoding: null, flowing: false, pipesCount: +0, paused: true }, _maxListeners: undefined, socket: null, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, rawHeaders: [ 'Date', 'Wed, 23 Jul 2025 16:34:09 GMT', 'Content-Type', 'application/json', 'Content-Length', '76', 'Connection', 'keep-alive', 'x-amzn-RequestId', '54dfaf8e-d92e-4f44-813e-65e20acd4b4a', 'x-amzn-ErrorType', 'AccessDeniedException' ], rawTrailers: [], joinDuplicateHeaders: undefined, aborted: false, upgrade: false, url: '', method: null, statusCode: 403, statusMessage: 'Forbidden', client: { _tlsOptions: { allowHalfOpen: undefined, pipe: false, secureContext: { context: { init: 'Function<init>', setKey: 'Function<setKey>', setCert: 'Function<setCert>', addCACert: 'Function<addCACert>', setAllowPartialTrustChain: 'Function<setAllowPartialTrustChain>', addCRL: 'Function<addCRL>', addRootCerts: 'Function<addRootCerts>', setCipherSuites: 'Function<setCipherSuites>', setCiphers: 'Function<setCiphers>', setSigalgs: 'Function<setSigalgs>', setECDHCurve: 'Function<setECDHCurve>', setDHParam: 'Function<setDHParam>', setMaxProto: 'Function<setMaxProto>', setMinProto: 'Function<setMinProto>', getMaxProto: 'Function<getMaxProto>', getMinProto: 'Function<getMinProto>', setOptions: 'Function<setOptions>', setSessionIdContext: 'Function<setSessionIdContext>', setSessionTimeout: 'Function<setSessionTimeout>', close: 'Function<close>', loadPKCS12: 'Function<loadPKCS12>', setTicketKeys: 'Function<setTicketKeys>', enableTicketKeyCallback: 'Function<enableTicketKeyCallback>', getTicketKeys: 'Function<getTicketKeys>', getCertificate: 'Function<getCertificate>', getIssuer: 'Function<getIssuer>', setEngineKey: 'Function<setEngineKey>', setClientCertEngine: 'Function<setClientCertEngine>', _external: {}, constructor: 'Function<SecureContext>' }, constructor: 'Function<SecureContext>' }, isServer: false, requestCert: true, rejectUnauthorized: true, session: undefined, ALPNProtocols
|
|
test/utils/expectInfraDeployed.ts#L13
AssertionError: expected undefined to match object { …(4) }
- Expected:
{
"AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper",
"LLD_DEBUGGER_ID": Any<String>,
"LLD_FUNCTION_ID": Any<String>,
"LLD_INITIAL_TIMEOUT": Any<String>,
}
+ Received:
undefined
❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7
❯ test/sls-basic.test.ts:35:5
|
|
test/utils/expectInfraDeployed.ts#L13
AssertionError: expected undefined to match object { …(4) }
- Expected:
{
"AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper",
"LLD_DEBUGGER_ID": Any<String>,
"LLD_FUNCTION_ID": Any<String>,
"LLD_INITIAL_TIMEOUT": Any<String>,
}
+ Received:
undefined
❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7
❯ test/sls-basic.test.ts:35:5
|
|
|
The logs for this run have expired and are no longer available.
Loading