Skip to content

Unit tests for aws secrets manager #197

Unit tests for aws secrets manager

Unit tests for aws secrets manager #197

Triggered via pull request January 9, 2025 21:54
Status Failure
Total duration 38s
Artifacts

ci.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
packages/plugin-aws-secrets-manager/test/aws-secrets-manager.test.ts > ConfigDug with AWSSecretsManagerPlugin > should load config values from AWS Secrets Manager: packages/config-dug/src/config-dug.ts#L240
ZodError: [ { "code": "invalid_return_type", "returnTypeError": { "issues": [ { "code": "invalid_type", "expected": "boolean", "received": "undefined", "path": [], "message": "Required" } ], "name": "ZodError" }, "path": [ "plugins", 0, "isInitialized" ], "message": "Invalid function return type" } ] ❯ Object.<anonymous> node_modules/zod/lib/types.js:2868:27 ❯ Object.isInitialized node_modules/zod/lib/types.js:2865:40 ❯ ConfigDug.loadPlugins packages/config-dug/src/config-dug.ts:240:19 ❯ ConfigDug.loadConfig packages/config-dug/src/config-dug.ts:160:22 ❯ ConfigDug.load packages/config-dug/src/config-dug.ts:134:5 ❯ packages/plugin-aws-secrets-manager/test/aws-secrets-manager.test.ts:102:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { issues: [ { code: 'invalid_return_type', returnTypeError: { stack: 'ZodError: [\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]\n at Object.get error [as error] (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:55:31)\n at Object.<anonymous> (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:2868:91)\n at Object.isInitialized (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:2865:40)\n at ConfigDug.loadPlugins (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:240:19)\n at ConfigDug.loadConfig (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:160:22)\n at ConfigDug.load (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:134:5)\n at /home/runner/work/config-dug/config-dug/packages/plugin-aws-secrets-manager/test/aws-secrets-manager.test.ts:102:5\n at file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:533:5\n at runTest (file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:1056:11)\n at runSuite (file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:1205:15)', issues: [ { code: 'invalid_type', expected: 'boolean', received: 'undefined', path: [], message: 'Required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', name: 'ZodError', constructor: 'Function<ZodError>', errors: [ { code: 'invalid_type', expected: 'boolean', received: 'undefined', path: [], message: 'Required' } ], format: 'Function<format>', toString: 'Function<toString>', message: '[\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [ 'Required' ], fieldErrors: {} } }, path: [ 'plugins', +0, 'isInitialized' ], message: 'Invalid function return type' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_return_type', returnTypeError: { stack: 'ZodError: [\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]\n at Object.get error [as error] (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:55:31)\n at Object.<anonymous> (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:2868:91)\n at Object.isInitialized (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:2865:40)\n at ConfigDug.loadPlugins (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:240:19)\n at ConfigDug.loadConfig (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:160:22)\n at ConfigDug.load (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:134:5)\n at /home/runner/work/config-dug/config-dug/packages/plugin-aws-secrets-manager/test/aws-secrets-manager.test.ts:102:5\n at fi
build (18)
Process completed with exit code 1.
build (20)
The job was canceled because "_18" failed.
packages/plugin-aws-secrets-manager/test/aws-secrets-manager.test.ts > ConfigDug with AWSSecretsManagerPlugin > should load config values from AWS Secrets Manager: packages/config-dug/src/config-dug.ts#L240
ZodError: [ { "code": "invalid_return_type", "returnTypeError": { "issues": [ { "code": "invalid_type", "expected": "boolean", "received": "undefined", "path": [], "message": "Required" } ], "name": "ZodError" }, "path": [ "plugins", 0, "isInitialized" ], "message": "Invalid function return type" } ] ❯ Object.<anonymous> node_modules/zod/lib/types.js:2868:27 ❯ Object.isInitialized node_modules/zod/lib/types.js:2865:40 ❯ ConfigDug.loadPlugins packages/config-dug/src/config-dug.ts:240:19 ❯ ConfigDug.loadConfig packages/config-dug/src/config-dug.ts:160:22 ❯ ConfigDug.load packages/config-dug/src/config-dug.ts:134:5 ❯ packages/plugin-aws-secrets-manager/test/aws-secrets-manager.test.ts:102:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { issues: [ { code: 'invalid_return_type', returnTypeError: { stack: 'ZodError: [\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]\n at Object.get error [as error] (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:55:31)\n at Object.<anonymous> (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:2868:91)\n at Object.isInitialized (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:2865:40)\n at ConfigDug.loadPlugins (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:240:19)\n at ConfigDug.loadConfig (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:160:22)\n at ConfigDug.load (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:134:5)\n at /home/runner/work/config-dug/config-dug/packages/plugin-aws-secrets-manager/test/aws-secrets-manager.test.ts:102:5\n at file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:533:5\n at runTest (file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:1056:11)\n at runSuite (file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:1205:15)', issues: [ { code: 'invalid_type', expected: 'boolean', received: 'undefined', path: [], message: 'Required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', name: 'ZodError', constructor: 'Function<ZodError>', errors: [ { code: 'invalid_type', expected: 'boolean', received: 'undefined', path: [], message: 'Required' } ], format: 'Function<format>', toString: 'Function<toString>', message: '[\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [ 'Required' ], fieldErrors: {} } }, path: [ 'plugins', +0, 'isInitialized' ], message: 'Invalid function return type' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_return_type', returnTypeError: { stack: 'ZodError: [\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]\n at Object.get error [as error] (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:55:31)\n at Object.<anonymous> (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:2868:91)\n at Object.isInitialized (/home/runner/work/config-dug/config-dug/node_modules/zod/lib/types.js:2865:40)\n at ConfigDug.loadPlugins (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:240:19)\n at ConfigDug.loadConfig (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:160:22)\n at ConfigDug.load (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:134:5)\n at /home/runner/work/config-dug/config-dug/packages/plugin-aws-secrets-manager/test/aws-secrets-manager.test.ts:102:5\n at fi
build (20)
Process completed with exit code 1.
build (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636