Skip to content

feat(ncu-config): add support for partially encrypted config files #1434

feat(ncu-config): add support for partially encrypted config files

feat(ncu-config): add support for partially encrypted config files #1434

Triggered via pull request November 12, 2025 15:00
Status Failure
Total duration 46s
Artifacts

nodejs.yml

on: pull_request
Test on Node.js  /  prepare-node-matrix
5s
Test on Node.js / prepare-node-matrix
Lint using ESLint
19s
Lint using ESLint
Matrix: Test on Node.js / test
Fit to window
Zoom out
Zoom in

Annotations

64 errors and 8 notices
Test on Node.js / test (22, ubuntu-latest)
Process completed with exit code 1.
permits underscores in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
permits capital letters in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
prefers XDG_CONFIG_HOME/ncurc to HOME/.ncurc: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in XDG_CONFIG_HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:519:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
asks for auth data if ncurc is invalid json: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Error: Unable to parse config file /home/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n' + ' at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n' + ' at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' ... 2 lines matching cause stack trace ...\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n' + ` [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n` + ' at JSON.parse (<anonymous>)\n' + ' at readJson (file:///home/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n' + ' at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n' + ' at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' at auth (file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n' + '}\n' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: `Error: Unable to parse config file /home/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n ... 2 lines matching cause stack trace ...\n at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n at JSON.parse (<anonymous>)\n at readJson (file:///home/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n at auth (file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n at file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n}\n`, expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match', diff: 'simple' }
asks for auth data if no ncurc is found: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Spawning gpg to encrypt the config value\n' + 'Error: spawn do-not-exist ENOENT\n' + ' at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n' + ' at onErrorNT (node:internal/child_process:483:16)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n' + ' errno: -2,\n' + " code: 'ENOENT',\n" + " syscall: 'spawn do-not-exist',\n" + " path: 'do-not-exist',\n" + " spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n" + '}\n' + 'Failed encrypt token, storing unencrypted instead\n' + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: "Spawning gpg to encrypt the config value\nError: spawn do-not-exist ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n errno: -2,\n code: 'ENOENT',\n syscall: 'spawn do-not-exist',\n path: 'do-not-exist',\n spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n}\nFailed encrypt token, storing unencrypted instead\nGet your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n", expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match', diff: 'simple' }
Test on Node.js / test (24, ubuntu-latest)
Process completed with exit code 1.
permits underscores in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
permits capital letters in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
prefers XDG_CONFIG_HOME/ncurc to HOME/.ncurc: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in XDG_CONFIG_HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
asks for auth data if ncurc is invalid json: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Error: Unable to parse config file /home/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n' + ' at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n' + ' at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' ... 2 lines matching cause stack trace ...\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n' + ` [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n` + ' at JSON.parse (<anonymous>)\n' + ' at readJson (file:///home/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n' + ' at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n' + ' at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' at auth (file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n' + '}\n' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: `Error: Unable to parse config file /home/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n ... 2 lines matching cause stack trace ...\n at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n at JSON.parse (<anonymous>)\n at readJson (file:///home/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n at auth (file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n at file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n}\n`, expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match', diff: 'simple' }
asks for auth data if no ncurc is found: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Spawning gpg to encrypt the config value\n' + 'Error: spawn do-not-exist ENOENT\n' + ' at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n' + ' at onErrorNT (node:internal/child_process:484:16)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n' + ' errno: -2,\n' + " code: 'ENOENT',\n" + " syscall: 'spawn do-not-exist',\n" + " path: 'do-not-exist',\n" + " spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n" + '}\n' + 'Failed encrypt token, storing unencrypted instead\n' + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:457:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: "Spawning gpg to encrypt the config value\nError: spawn do-not-exist ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n at onErrorNT (node:internal/child_process:484:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n errno: -2,\n code: 'ENOENT',\n syscall: 'spawn do-not-exist',\n path: 'do-not-exist',\n spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n}\nFailed encrypt token, storing unencrypted instead\nGet your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n", expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match', diff: 'simple' }
Test on Node.js / test (20, macos-latest)
Process completed with exit code 1.
permits underscores in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:524:28) at Pipe.<anonymous> (node:net:343:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual' }
permits capital letters in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:524:28) at Pipe.<anonymous> (node:net:343:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual' }
prefers XDG_CONFIG_HOME/ncurc to HOME/.ncurc: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual' }
returns ncurc data if valid in XDG_CONFIG_HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:524:28) at Pipe.<anonymous> (node:net:343:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual' }
returns ncurc data if valid in HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:524:28) at Pipe.<anonymous> (node:net:343:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual' }
asks for auth data if ncurc is invalid json: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Error: Unable to parse config file /Users/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n' + ' at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n' + ' at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' ... 2 lines matching cause stack trace ...\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n' + ` [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n` + ' at JSON.parse (<anonymous>)\n' + ' at readJson (file:///Users/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n' + ' at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n' + ' at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' at auth (file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n' + '}\n' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:524:28) at Pipe.<anonymous> (node:net:343:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: `Error: Unable to parse config file /Users/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n ... 2 lines matching cause stack trace ...\n at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n at JSON.parse (<anonymous>)\n at readJson (file:///Users/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n at auth (file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n at file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n}\n`, expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match' }
asks for auth data if no ncurc is found: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Spawning gpg to encrypt the config value\n' + 'Error: spawn do-not-exist ENOENT\n' + ' at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n' + ' at onErrorNT (node:internal/child_process:483:16)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {\n' + ' errno: -2,\n' + " code: 'ENOENT',\n" + " syscall: 'spawn do-not-exist',\n" + " path: 'do-not-exist',\n" + " spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n" + '}\n' + 'Failed encrypt token, storing unencrypted instead\n' + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:524:28) at Pipe.<anonymous> (node:net:343:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: "Spawning gpg to encrypt the config value\nError: spawn do-not-exist ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {\n errno: -2,\n code: 'ENOENT',\n syscall: 'spawn do-not-exist',\n path: 'do-not-exist',\n spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n}\nFailed encrypt token, storing unencrypted instead\nGet your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n", expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match' }
Test on Node.js / test (25, ubuntu-latest, experimental)
Process completed with exit code 1.
permits underscores in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
permits capital letters in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
prefers XDG_CONFIG_HOME/ncurc to HOME/.ncurc: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in XDG_CONFIG_HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
asks for auth data if ncurc is invalid json: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Error: Unable to parse config file /home/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n' + ' at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n' + ' at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' ... 2 lines matching cause stack trace ...\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n' + ` [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n` + ' at JSON.parse (<anonymous>)\n' + ' at readJson (file:///home/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n' + ' at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n' + ' at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' at auth (file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n' + '}\n' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: `Error: Unable to parse config file /home/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n ... 2 lines matching cause stack trace ...\n at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n at JSON.parse (<anonymous>)\n at readJson (file:///home/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n at auth (file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n at file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n}\n`, expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Fail
asks for auth data if no ncurc is found: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Spawning gpg to encrypt the config value\n' + 'Error: spawn do-not-exist ENOENT\n' + ' at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n' + ' at onErrorNT (node:internal/child_process:483:16)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {\n' + ' errno: -2,\n' + " code: 'ENOENT',\n" + " syscall: 'spawn do-not-exist',\n" + " path: 'do-not-exist',\n" + " spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n" + '}\n' + 'Failed encrypt token, storing unencrypted instead\n' + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: "Spawning gpg to encrypt the config value\nError: spawn do-not-exist ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {\n errno: -2,\n code: 'ENOENT',\n syscall: 'spawn do-not-exist',\n path: 'do-not-exist',\n spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n}\nFailed encrypt token, storing unencrypted instead\nGet your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n", expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match', diff: 'simple' }
Test on Node.js / test (25, macos-latest, experimental)
Process completed with exit code 1.
permits underscores in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
permits capital letters in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
prefers XDG_CONFIG_HOME/ncurc to HOME/.ncurc: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in XDG_CONFIG_HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
asks for auth data if ncurc is invalid json: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Error: Unable to parse config file /Users/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n' + ' at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n' + ' at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' ... 2 lines matching cause stack trace ...\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n' + ` [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n` + ' at JSON.parse (<anonymous>)\n' + ' at readJson (file:///Users/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n' + ' at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n' + ' at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' at auth (file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n' + '}\n' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: `Error: Unable to parse config file /Users/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n ... 2 lines matching cause stack trace ...\n at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n at JSON.parse (<anonymous>)\n at readJson (file:///Users/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n at auth (file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n at file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n}\n`, expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Fai
asks for auth data if no ncurc is found: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Spawning gpg to encrypt the config value\n' + 'Error: spawn do-not-exist ENOENT\n' + ' at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n' + ' at onErrorNT (node:internal/child_process:483:16)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {\n' + ' errno: -2,\n' + " code: 'ENOENT',\n" + " syscall: 'spawn do-not-exist',\n" + " path: 'do-not-exist',\n" + " spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n" + '}\n' + 'Failed encrypt token, storing unencrypted instead\n' + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1085:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: "Spawning gpg to encrypt the config value\nError: spawn do-not-exist ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {\n errno: -2,\n code: 'ENOENT',\n syscall: 'spawn do-not-exist',\n path: 'do-not-exist',\n spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n}\nFailed encrypt token, storing unencrypted instead\nGet your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n", expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match', diff: 'simple' }
Test on Node.js / test (20, ubuntu-latest)
Process completed with exit code 1.
permits underscores in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual' }
permits capital letters in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual' }
prefers XDG_CONFIG_HOME/ncurc to HOME/.ncurc: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual' }
returns ncurc data if valid in XDG_CONFIG_HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual' }
returns ncurc data if valid in HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual' }
asks for auth data if ncurc is invalid json: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Error: Unable to parse config file /home/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n' + ' at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n' + ' at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' ... 2 lines matching cause stack trace ...\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n' + ` [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n` + ' at JSON.parse (<anonymous>)\n' + ' at readJson (file:///home/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n' + ' at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n' + ' at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' at auth (file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n' + ' at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n' + '}\n' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: `Error: Unable to parse config file /home/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n ... 2 lines matching cause stack trace ...\n at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n at JSON.parse (<anonymous>)\n at readJson (file:///home/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n at getConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n at getMergedConfig (file:///home/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n at auth (file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n at file:///home/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n at file:///home/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n}\n`, expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match' }
asks for auth data if no ncurc is found: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Spawning gpg to encrypt the config value\n' + 'Error: spawn do-not-exist ENOENT\n' + ' at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n' + ' at onErrorNT (node:internal/child_process:483:16)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {\n' + ' errno: -2,\n' + " code: 'ENOENT',\n" + " syscall: 'spawn do-not-exist',\n" + " path: 'do-not-exist',\n" + " spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n" + '}\n' + 'Failed encrypt token, storing unencrypted instead\n' + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' at ChildProcess.<anonymous> (file:///home/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:524:28) at maybeClose (node:internal/child_process:1104:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: "Spawning gpg to encrypt the config value\nError: spawn do-not-exist ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {\n errno: -2,\n code: 'ENOENT',\n syscall: 'spawn do-not-exist',\n path: 'do-not-exist',\n spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n}\nFailed encrypt token, storing unencrypted instead\nGet your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n", expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match' }
Test on Node.js / test (24, macos-latest)
Process completed with exit code 1.
permits underscores in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:457:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
permits capital letters in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:457:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
prefers XDG_CONFIG_HOME/ncurc to HOME/.ncurc: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:457:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in XDG_CONFIG_HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:457:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:457:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
asks for auth data if ncurc is invalid json: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Error: Unable to parse config file /Users/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n' + ' at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n' + ' at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' ... 2 lines matching cause stack trace ...\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n' + ` [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n` + ' at JSON.parse (<anonymous>)\n' + ' at readJson (file:///Users/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n' + ' at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n' + ' at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' at auth (file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n' + '}\n' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:457:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: `Error: Unable to parse config file /Users/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n ... 2 lines matching cause stack trace ...\n at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n at JSON.parse (<anonymous>)\n at readJson (file:///Users/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n at auth (file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n at file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n}\n`, expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match', diff: 'simple' }
asks for auth data if no ncurc is found: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Spawning gpg to encrypt the config value\n' + 'Error: spawn do-not-exist ENOENT\n' + ' at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n' + ' at onErrorNT (node:internal/child_process:484:16)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n' + ' errno: -2,\n' + " code: 'ENOENT',\n" + " syscall: 'spawn do-not-exist',\n" + " path: 'do-not-exist',\n" + " spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n" + '}\n' + 'Failed encrypt token, storing unencrypted instead\n' + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:508:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:457:11) at Socket.emit (node:events:508:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: "Spawning gpg to encrypt the config value\nError: spawn do-not-exist ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n at onErrorNT (node:internal/child_process:484:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n errno: -2,\n code: 'ENOENT',\n syscall: 'spawn do-not-exist',\n path: 'do-not-exist',\n spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n}\nFailed encrypt token, storing unencrypted instead\nGet your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n", expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match', diff: 'simple' }
Test on Node.js / test (22, macos-latest)
Process completed with exit code 1.
permits underscores in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:519:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
permits capital letters in token format: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
prefers XDG_CONFIG_HOME/ncurc to HOME/.ncurc: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:519:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in XDG_CONFIG_HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:519:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
returns ncurc data if valid in HOME: test/unit/auth.test.js#L159
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' - '' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:159:47) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n', expected: '', operator: 'strictEqual', diff: 'simple' }
asks for auth data if ncurc is invalid json: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Error: Unable to parse config file /Users/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n' + ' at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n' + ' at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' ... 2 lines matching cause stack trace ...\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n' + ` [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n` + ' at JSON.parse (<anonymous>)\n' + ' at readJson (file:///Users/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n' + ' at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n' + ' at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n' + ' at auth (file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n' + ' at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n' + '}\n' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:519:28) at Pipe.<anonymous> (node:net:346:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: `Error: Unable to parse config file /Users/runner/work/node-core-utils/node-core-utils/test/unit/tmp-1/.ncurc\n at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:98:11)\n at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n ... 2 lines matching cause stack trace ...\n at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28 {\n [cause]: SyntaxError: Unexpected token 'h', "this is not json" is not valid JSON\n at JSON.parse (<anonymous>)\n at readJson (file:///Users/runner/work/node-core-utils/node-core-utils/lib/file.js:36:17)\n at getConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:92:18)\n at getMergedConfig (file:///Users/runner/work/node-core-utils/node-core-utils/lib/config.js:25:26)\n at auth (file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:117:20)\n at file:///Users/runner/work/node-core-utils/node-core-utils/lib/auth.js:39:19\n at file:///Users/runner/work/node-core-utils/node-core-utils/test/fixtures/run-auth-github.js:18:28\n}\n`, expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match', diff: 'simple' }
asks for auth data if no ncurc is found: test/unit/auth.test.js#L160
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/. Input: 'Spawning gpg to encrypt the config value\n' + 'Error: spawn do-not-exist ENOENT\n' + ' at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n' + ' at onErrorNT (node:internal/child_process:483:16)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n' + ' errno: -2,\n' + " code: 'ENOENT',\n" + " syscall: 'spawn do-not-exist',\n" + " path: 'do-not-exist',\n" + " spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n" + '}\n' + 'Failed encrypt token, storing unencrypted instead\n' + 'Get your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n' at ChildProcess.<anonymous> (file:///Users/runner/work/node-core-utils/node-core-utils/test/unit/auth.test.js:160:21) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) { generatedMessage: true, code: 'ERR_ASSERTION', actual: "Spawning gpg to encrypt the config value\nError: spawn do-not-exist ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n errno: -2,\n code: 'ENOENT',\n syscall: 'spawn do-not-exist',\n path: 'do-not-exist',\n spawnargs: [ '--default-recipient-self', '--encrypt', '--armor' ]\n}\nFailed encrypt token, storing unencrypted instead\nGet your Jenkins API token in https://ci.nodejs.org/me/security and run the following command to add it to your ncu config: ncu-config --global set -x jenkins_token\n", expected: /^Spawning gpg to encrypt the config value\r?\nError: spawn do-not-exist ENOENT(?:.*\n)+Failed encrypt token, storing unencrypted instead\r?\n$/, operator: 'match', diff: 'simple' }
Test on Node.js / test (22, ubuntu-latest)
Total Tests: 173 Suites πŸ“‚: 51 Passed βœ…: 166 Failed ❌: 7 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 2719.989ms
Test on Node.js / test (24, ubuntu-latest)
Total Tests: 173 Suites πŸ“‚: 51 Passed βœ…: 166 Failed ❌: 7 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 3453.002ms
Test on Node.js / test (20, macos-latest)
Total Tests: 173 Suites πŸ“‚: 51 Passed βœ…: 166 Failed ❌: 7 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 3000.515ms
Test on Node.js / test (25, ubuntu-latest, experimental)
Total Tests: 173 Suites πŸ“‚: 51 Passed βœ…: 166 Failed ❌: 7 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 2672.913ms
Test on Node.js / test (25, macos-latest, experimental)
Total Tests: 173 Suites πŸ“‚: 51 Passed βœ…: 166 Failed ❌: 7 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 2086.870ms
Test on Node.js / test (20, ubuntu-latest)
Total Tests: 173 Suites πŸ“‚: 51 Passed βœ…: 166 Failed ❌: 7 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 3389.633ms
Test on Node.js / test (24, macos-latest)
Total Tests: 173 Suites πŸ“‚: 51 Passed βœ…: 166 Failed ❌: 7 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 3708.846ms
Test on Node.js / test (22, macos-latest)
Total Tests: 173 Suites πŸ“‚: 51 Passed βœ…: 166 Failed ❌: 7 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 3953.580ms