Closed Bug 1917573 Opened 10 months ago Closed 5 months ago

Make it possible to use npm packages in xpcshell tests

Categories

(Core :: Networking: DNS, task, P2)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: valentin, Assigned: valentin)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

(In reply to John from bug 1914796 comment #0)

STR

  1. Create new profile
  2. Set in about:preferences -> “Manual proxy configuration” some SOCKS5 proxy (127.0.0.1:9050 for example)
  3. Set about:config -> network.http.speculative-parallel-limit; 0 and network.dns.disablePrefetch; true
  4. Open any site (not loaded before)

We should have a test for this.
It seems we could use the socks5 nodejs library for this test https://github.com/lqqyt2423/node-socks5-server
I think I would prefer us not to vendor the library, but instead have a similar approach to the devtools testing framework
Future enhancements might also apply to H3 with nodejs

Assignee: nobody → valentin.gosu
Attachment #9443431 - Attachment description: WIP: Bug 1917573 - Add unit_node networking xpcshell tests that use npm packages r=#necko → Bug 1917573 - Add networking xpcshell test that use npm packages r=#necko
Status: NEW → ASSIGNED
Summary: Write nodejs test for socks5 proxy → Make it possible to use npm packages in xpcshell tests
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/adb7ca7f42fa Add networking xpcshell test that use npm packages r=necko-reviewers,jmaher,kershaw
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: