Skip to content

Create test file for each command, move dryrun tests there (#363) #895

Create test file for each command, move dryrun tests there (#363)

Create test file for each command, move dryrun tests there (#363) #895

Triggered via push March 14, 2025 13:35
Status Failure
Total duration 4m 42s
Artifacts

test.yml

on: push
Tests  /  Resolving inputs
0s
Tests / Resolving inputs
Matrix: Tests / Test
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Tests / Test (20, ubuntu-latest)
Process completed with exit code 1.
Tests / Test (22, ubuntu-latest)
Process completed with exit code 1.
Tests / Test (23, ubuntu-latest)
Process completed with exit code 1.
Tests / Test (18, ubuntu-latest)
Process completed with exit code 1.
src/commands/scan/cmd-scan-del.test.ts > socket scan del > should require args with just dry-run: `scan del fakeorg scanidee --dry-run`: src/commands/scan/cmd-scan-del.test.ts#L77
Error: Snapshot `socket scan del > should require args with just dry-run: `scan del fakeorg scanidee --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket scan del`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket scan del`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\index.js:613\x0d + throw new ErrorWithCause('API returned an error', { cause: err })\x0d + ^\x0d + \x0d + ErrorWithCause: API returned an error\x0d + at #handleApiError (D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\index.js:613:15)\x0d + at SocketSdk.postSettings (D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\index.js:586:85)\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1302:22\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1289:7 {\x0d + cause: HTTPError: Response code 502 (Bad Gateway)\x0d + at Request.<anonymous> (file:///D:/a/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/node_modules/got/dist/source/as-promise/index.js:86:42)\x0d + at Object.onceWrapper (node:events:632:26)\x0d + at Request.emit (node:events:529:35)\x0d + at Request._onResponseBase (file:///D:/a/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/node_modules/got/dist/source/core/index.js:727:22)\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async Request._onResponse (file:///D:/a/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/node_modules/got/dist/source/core/index.js:766:13) {\x0d + input: undefined,\x0d + code: 'ERR_NON_2XX_3XX_RESPONSE',\x0d + timings: {\x0d + start: 1741959596253,\x0d + socket: 1741959596253,\x0d + lookup: 1741959596255,\x0d + connect: 1741959596257,\x0d + secureConnect: 1741959596262,\x0d + upload: 1741959596262,\x0d + response: 1741959596550,\x0d + end: 1741959596695,\x0d + error: undefined,\x0d + abort: undefined,\x0d + phases: {\x0d + wait: 0,\x0d + dns: 2,\x0d + tcp: 2,\x0d + tls: 5,\x0d + request: 0,\x0d + firstByte: 288,\x0d + download: 145,\x0d + total: 442\x0d + }\x0d + },\x0d + options: Options {\x0d + _unixOptions: undefined,\x0d + _internals: {\x0d + request: undefined,\x0d + agent: { http: undefined, https: undefined, http2: undefined },\x0d + h2session: undefined,\x0d + decompress: true,\x0d + timeout: {\x0d + connect: undefined,\x0d + lookup: undefined,\x0d + read: undefined,\x0d + request: undefined,\x0d + response: undefined,\x0d + secureConnect: undefined,\x0d + send: undefined,\x0d + socket: undefined\x0d + },\x0d + prefixUrl: '',\x0d + body: '[{"organization":"994"}]',\x0d + form: undefined,\x0d + json: undefined,\x0d + cookieJar: undefined,\x0d + ignoreInvalidCookies: false,\x0d + searchParams: undefined,\x0d + dnsLookup: undefined,\x0d + dnsCache: undefined,\x0d + context: {},\x0d + hooks: {\x0d + init: [],\x0d + beforeRequest: [],\x0d + beforeError: [],\x0d + beforeRedirect: [],\x0d + beforeRetry: [],\x0d + afterResponse: []\x0d + },\x0d + followRedirect: true,\x0d + maxRedirects: 10,\x0d + cache: undefined,\x0d + throwHttpErrors: true,\x0d + username: '',\x0d + password: '',\x0d + http2: false,\x0d + allowGetBody: false,\x0d +
Tests / Test (18, windows-latest)
Process completed with exit code 1.