fix: cicd #2
Annotations
10 errors
|
tests/integration/ca.test.ts > ca commands > ca get > returns JSON when --json flag is set:
tests/integration/helpers.ts#L46
SyntaxError: Unexpected end of JSON input
❯ parseJsonOutput tests/integration/helpers.ts:46:15
❯ tests/integration/ca.test.ts:49:19
|
|
tests/integration/ca.test.ts > ca commands > ca get > gets CA details by ID:
tests/integration/helpers.ts#L46
SyntaxError: Unexpected end of JSON input
❯ parseJsonOutput tests/integration/helpers.ts:46:15
❯ tests/integration/ca.test.ts:37:19
|
|
tests/integration/ca.test.ts > ca commands > ca list > returns JSON when --json flag is set:
tests/integration/ca.test.ts#L18
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/integration/ca.test.ts:18:31
|
|
tests/integration/ca.test.ts > ca commands > ca list > lists Certificate Authorities:
tests/integration/ca.test.ts#L9
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/integration/ca.test.ts:9:31
|
|
tests/integration/auth.test.ts > auth commands > auth flow > login -> whoami -> logout -> whoami fails:
tests/integration/auth.test.ts#L110
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/integration/auth.test.ts:110:36
|
|
tests/integration/auth.test.ts > auth commands > logout > preserves other config values:
tests/integration/auth.test.ts#L91
Error: ENOENT: no such file or directory, open '/home/runner/.certman/config.json'
❯ tests/integration/auth.test.ts:91:33
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/.certman/config.json' }
|
|
tests/integration/auth.test.ts > auth commands > logout > removes API key from config:
tests/integration/auth.test.ts#L79
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/integration/auth.test.ts:79:31
|
|
tests/integration/auth.test.ts > auth commands > login > rejects invalid API key:
tests/integration/auth.test.ts#L66
AssertionError: expected 'node:internal/modules/cjs/loader:1210…' to contain 'Invalid API key'
- Expected
+ Received
- Invalid API key
+ node:internal/modules/cjs/loader:1210
+ throw err;
+ ^
+
+ Error: Cannot find module '/home/runner/work/certman-cli/certman-cli/dist/index.js'
+ at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
+ at Module._load (node:internal/modules/cjs/loader:1038:27)
+ at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
+ at node:internal/main/run_main_module:28:49 {
+ code: 'MODULE_NOT_FOUND',
+ requireStack: []
+ }
+
+ Node.js v20.20.0
+
❯ tests/integration/auth.test.ts:66:29
|
|
tests/integration/auth.test.ts > auth commands > login > creates config directory if not exists:
tests/integration/auth.test.ts#L58
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/integration/auth.test.ts:58:31
|
|
tests/integration/auth.test.ts > auth commands > login > saves API key with --api-key flag:
tests/integration/auth.test.ts#L42
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/integration/auth.test.ts:42:31
|