This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
feat(agent): add request/response body intercept #408
Annotations
11 errors
DnsOverTlsSocket › should be able to lookup dns records:
home/runner/work/unblocked/shared/commons/lib/Resolvable.ts#L19
TimeoutError: undefined
at new Resolvable (../../shared/commons/lib/Resolvable.ts:19:18)
at createPromise (../../shared/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)
|
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.
|
can dismiss dialogs:
Users/runner/work/unblocked/shared/commons/lib/Timer.ts#L55
TimeoutError: Timeout waiting for "tab.goto(http://localhost:50648/dialog)"
at Timer.waitForPromise (../../shared/commons/lib/Timer.ts:55:21)
at Page.goto (../agent/main/lib/Page.ts:331:36)
at runMicrotasks (<anonymous>)
at async Object.<anonymous> (../agent/main/test/prompts.test.ts:50:3)
|
Page.popups › Popup tests › should be able to capture concurrent popup navigations:
agent/main/test/Page.popups.test.ts#L92
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/Page.popups.test.ts:92:5
at ../agent/main/test/Page.popups.test.ts:50:3
at Object.<anonymous> (../agent/main/test/Page.popups.test.ts:6:1)
at runMicrotasks (<anonymous>)
|
Test node-16, macos-latest, latest
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": "E10243EDAFC10168F90E21C21E8476F3", "documentNavigationId": null, "finalUrl": "http://localhost:49668/popup-redirect2", "frameId": 2, "id": 2, "initiatedTime": 1691533327665, "loaderId": "E10243EDAFC10168F90E21C21E8476F3", "navigationReason": "newFrame", "requestedUrl": "http://localhost:49668/popup-redirect", "resourceIdResolvable": {"isResolved": false, "resolved": undefined}, "startCommandId": 3, "statusChanges": Map {"HttpRequested" => 1691533327666, "HttpRedirected" => 1691533327666}, "tabId": 2}, {"browserRequestId": "E10243EDAFC10168F90E21C21E8476F3", "documentNavigationId": null, "finalUrl": "http://localhost:49668/popup-redirect3", "frameId": 2, "id": 3, "initiatedTime": 1691533327667, "loaderId": "E10243EDAFC10168F90E21C21E8476F3", "navigationReason": "newFrame", "requestedUrl": "http://localhost:49668/popup-redirect2", "resourceIdResolvable": {"isResolved": false, "resolved": undefined}, "startCommandId": 3, "statusChanges": Map {"HttpRequested" => 1691533327667, "HttpRedirected" => 1691533327668}, "tabId": 2}, {"browserRequestId": "E10243EDAFC10168F90E21C21E8476F3", "documentNavigationId": null, "finalUrl": "http://localhost:49668/popup-redirect3", "frameId": 2, "id": 4, "initiatedTime": 1691533327668, "loaderId": "E10243EDAFC10168F90E21C21E8476F3", "navigationReason": "newFrame", "requestedUrl": "http://localhost:49668/popup-redirect3", "resourceId": 164, "resourceIdResolvable": {"isResolved": true, "resolved": 164}, "startCommandId": 3, "statusChanges": Map {"HttpRequested" => 1691533327669, "HttpResponded" => 1691533327629.939, "AllContentLoaded" => 1691533327701.526, "DomContentLoaded" => 1691533327702.6519, "JavascriptReady" => 1691533327704, "ContentPaint" => 1691533327704}, "tabId": 2}, {"browserRequestId": "AAD0F0503B1123B17BCE05F8EF6DBED2", "documentNavigationId": null, "finalUrl": "http://localhost:49668/popup-done", "frameId": 2, "id": 5, "initiatedTime": 1691533327713, "loaderId": "AAD0F0503B1123B17BCE05F8EF6DBED2", "navigationReason": "scriptInitiated", "requestedUrl": "http://localhost:49668/popup-done", "resourceId": 165, "resourceIdResolvable": {"isResolved": true, "resolved": 165}, "startCommandId": 5, "statusChanges": Map {"HttpRequested" => 1691533327713, "HttpResponded" => 1691533327710.441, "AllContentLoaded" => 1691533327726.686, "DomContentLoaded" => 1691533327727.2087}, "tabId": 2}]
at Object.<anonymous> (../agent/main/test/navigation.test.ts:576:21)
|
Test node-20, macos-latest, latest
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-logs-macos-latest-16-main
Expired
|
23.5 MB |
|
test-logs-macos-latest-20-main
Expired
|
23.6 MB |
|
test-logs-ubuntu-latest-18.x-chrome-103-0
Expired
|
22.8 MB |
|