Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

feat(agent): add request/response body intercept (#71) #412

feat(agent): add request/response body intercept (#71)

feat(agent): add request/response body intercept (#71) #412

Triggered via push August 9, 2023 13:53
Status Failure
Total duration 21m 40s
Artifacts 5
Matrix: lint-and-test
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 2 warnings
DnsOverTlsSocket › should be able to lookup dns records: agent/mitm/lib/DnsOverTlsSocket.ts#L111
TimeoutError: undefined at new Resolvable (agent/mitm/node_modules/commons/lib/Resolvable.ts:19:18) at createPromise (agent/mitm/node_modules/commons/lib/utils.ts:140:10) at DnsOverTlsSocket.getDnsResponse (../agent/mitm/lib/DnsOverTlsSocket.ts:111:37) at DnsOverTlsSocket.lookupARecords (../agent/mitm/lib/DnsOverTlsSocket.ts:52:17) at Object.<anonymous> (../agent/mitm/test/dns.test.ts:92:22)
DnsOverTlsSocket › should be able to reuse the socket: agent/mitm/lib/DnsOverTlsSocket.ts#L131
TypeError: Cannot read properties of undefined (reading 'write') at DnsOverTlsSocket.query (../agent/mitm/lib/DnsOverTlsSocket.ts:131:28) at DnsOverTlsSocket.getDnsResponse (../agent/mitm/lib/DnsOverTlsSocket.ts:106:21) at DnsOverTlsSocket.lookupARecords (../agent/mitm/lib/DnsOverTlsSocket.ts:52:17) at Object.<anonymous> (../agent/mitm/test/dns.test.ts:97:22)
DnsOverTlsSocket › should be able to lookup multiple records at once: agent/mitm/lib/DnsOverTlsSocket.ts#L131
TypeError: Cannot read properties of undefined (reading 'write') at DnsOverTlsSocket.query (../agent/mitm/lib/DnsOverTlsSocket.ts:131:28) at DnsOverTlsSocket.getDnsResponse (../agent/mitm/lib/DnsOverTlsSocket.ts:106:21) at DnsOverTlsSocket.lookupARecords (../agent/mitm/lib/DnsOverTlsSocket.ts:52:17) at async Promise.all (index 0) at Object.<anonymous> (../agent/mitm/test/dns.test.ts:102:22)
DnsOverTlsSocket › should be able to lookup a record after a miss: agent/mitm/lib/DnsOverTlsSocket.ts#L131
TypeError: Cannot read properties of undefined (reading 'write') at DnsOverTlsSocket.query (../agent/mitm/lib/DnsOverTlsSocket.ts:131:28) at DnsOverTlsSocket.getDnsResponse (../agent/mitm/lib/DnsOverTlsSocket.ts:106:21) at DnsOverTlsSocket.lookupARecords (../agent/mitm/lib/DnsOverTlsSocket.ts:52:17) at Object.<anonymous> (../agent/mitm/test/dns.test.ts:122:19)
Test node-18.x, ubuntu-latest, chrome-113-0
Process completed with exit code 1.
launchProcess › should throw a friendly error if its headed and there is no xserver on linux running: agent/main/test/BrowserProcess.test.ts#L45
thrown: "Exceeded timeout of 60000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at ../agent/main/test/BrowserProcess.test.ts:45:3 at Object.<anonymous> (../agent/main/test/BrowserProcess.test.ts:12:1)
Test node-18.x, ubuntu-latest, chrome-103-0
Process completed with exit code 1.
basic Navigation tests withoutMitm › handles a new page that redirects: agent/main/test/navigation.test.ts#L576
expect(received).toHaveLength(expected) Expected length: 5 Received length: 4 Received array: [{"browserRequestId": "E851B8282EC48346C33351BC74884226", "documentNavigationId": null, "finalUrl": "http://localhost:49642/popup-redirect2", "frameId": 2, "id": 2, "initiatedTime": 1691589960336, "loaderId": "E851B8282EC48346C33351BC74884226", "navigationReason": "newFrame", "requestedUrl": "http://localhost:49642/popup-redirect", "resourceIdResolvable": {"isResolved": false, "resolved": undefined}, "startCommandId": 3, "statusChanges": Map {"HttpRequested" => 1691589960337, "HttpRedirected" => 1691589960337}, "tabId": 2}, {"browserRequestId": "E851B8282EC48346C33351BC74884226", "documentNavigationId": null, "finalUrl": "http://localhost:49642/popup-redirect3", "frameId": 2, "id": 3, "initiatedTime": 1691589960337, "loaderId": "E851B8282EC48346C33351BC74884226", "navigationReason": "newFrame", "requestedUrl": "http://localhost:49642/popup-redirect2", "resourceIdResolvable": {"isResolved": false, "resolved": undefined}, "startCommandId": 3, "statusChanges": Map {"HttpRequested" => 1691589960338, "HttpRedirected" => 1691589960338}, "tabId": 2}, {"browserRequestId": "E851B8282EC48346C33351BC74884226", "documentNavigationId": null, "finalUrl": "http://localhost:49642/popup-redirect3", "frameId": 2, "id": 4, "initiatedTime": 1691589960339, "loaderId": "E851B8282EC48346C33351BC74884226", "navigationReason": "newFrame", "requestedUrl": "http://localhost:49642/popup-redirect3", "resourceId": 164, "resourceIdResolvable": {"isResolved": true, "resolved": 164}, "startCommandId": 3, "statusChanges": Map {"HttpRequested" => 1691589960339, "HttpResponded" => 1691589960310.725, "AllContentLoaded" => 1691589960352.977, "DomContentLoaded" => 1691589960353.188, "JavascriptReady" => 1691589960368, "ContentPaint" => 1691589960368}, "tabId": 2}, {"browserRequestId": "C8FF6618024B2DBA8F0C3188BDD95CCC", "documentNavigationId": null, "finalUrl": "http://localhost:49642/popup-done", "frameId": 2, "id": 5, "initiatedTime": 1691589960375, "loaderId": "C8FF6618024B2DBA8F0C3188BDD95CCC", "navigationReason": "scriptInitiated", "requestedUrl": "http://localhost:49642/popup-done", "resourceId": 165, "resourceIdResolvable": {"isResolved": true, "resolved": 165}, "startCommandId": 5, "statusChanges": Map {"HttpRequested" => 1691589960375, "HttpResponded" => 1691589960372.769, "AllContentLoaded" => 1691589960381.773, "DomContentLoaded" => 1691589960382.102}, "tabId": 2}] at Object.<anonymous> (../agent/main/test/navigation.test.ts:576:21)
Test node-16, macos-latest, latest
Process completed with exit code 1.
should handle cache headers for h2: agent/mitm/test/http2.test.ts#L211
expect(received).toBe(expected) // Object.is equality Expected: "\"46e2aa1bef425becb0cb4651c23fff38:1573670083.753497\"" Received: undefined at Object.<anonymous> (../agent/mitm/test/http2.test.ts:211:20)
Test node-20, ubuntu-latest, latest
Process completed with exit code 1.
Test node-18, windows-latest, latest
Process completed with exit code 1.
Test node-18, windows-latest, latest
An error occurred trying to start process 'C:\Program Files\PowerShell\7\pwsh.EXE' with working directory 'D:\a\unblocked\unblocked\./build'. The directory name is invalid.
Test node-20, windows-latest, latest
Process completed with exit code 1.
Test node-20, windows-latest, latest
An error occurred trying to start process 'C:\Program Files\PowerShell\7\pwsh.EXE' with working directory 'D:\a\unblocked\unblocked\./build'. The directory name is invalid.
it should be able to change window property order: plugins/default-browser-emulator/test/polyfills.test.ts#L236
thrown: "Exceeded timeout of 10000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at Object.<anonymous> (../plugins/default-browser-emulator/test/polyfills.test.ts:236:1)
Page.navigate › navigate › should not leak listeners during navigation of 20 pages: agent/main/test/Page.navigate.test.ts#L155
thrown: "Exceeded timeout of 30000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at ../agent/main/test/Page.navigate.test.ts:155:5 at ../agent/main/test/Page.navigate.test.ts:46:3 at Object.<anonymous> (../agent/main/test/Page.navigate.test.ts:5:1)
Test node-20, macos-latest, latest
Process completed with exit code 1.
Test node-18, windows-latest, latest
No files were found with the provided path: build/test-logs.tar. No artifacts will be uploaded.
Test node-20, windows-latest, latest
No files were found with the provided path: build/test-logs.tar. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size
test-logs-macos-latest-16-main Expired
23.6 MB
test-logs-macos-latest-20-main Expired
23.5 MB
test-logs-ubuntu-latest-18.x-chrome-103-0 Expired
22.9 MB
test-logs-ubuntu-latest-18.x-chrome-113-0 Expired
23.7 MB
test-logs-ubuntu-latest-20-main Expired
23.8 MB