Page MenuHomePhabricator

[Commtest] extract code to create a socket session with Tunnelbroker
ClosedPublic

Authored by kamil on Sep 28 2023, 7:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 2, 9:03 AM
Unknown Object (File)
Wed, Oct 2, 9:03 AM
Unknown Object (File)
Wed, Oct 2, 8:55 AM
Unknown Object (File)
Wed, Oct 2, 6:02 AM
Unknown Object (File)
Tue, Sep 17, 10:50 PM
Unknown Object (File)
Aug 25 2024, 12:15 PM
Unknown Object (File)
Aug 25 2024, 12:15 PM
Unknown Object (File)
Aug 25 2024, 12:09 PM
Subscribers

Details

Summary

Minor cleanup, putting duplicated code in one place - helps me with testing.

Test Plan
  1. Run Identity
  2. Run Tunnelbroker
  3. Go to commtest/
  4. Run:
cargo test --test identity_tunnelbroker_tests -- --nocapture
  1. Run:
cargo test --test tunnelbroker_integration_test -- --nocapture

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Sep 28 2023, 8:08 AM
bartek added inline comments.
services/commtest/src/tunnelbroker/socket.rs
11 ↗(On Diff #31520)

we could optionally make this configurable, we use env vars like COMM_SERVICES_PORT_BACKUP for other services

This revision is now accepted and ready to land.Sep 29 2023, 12:58 AM
services/commtest/src/tunnelbroker/socket.rs
11 ↗(On Diff #31520)

There is no env associated with WebSocket yet, created a task: ENG-5230