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, Jan 1, 4:43 AM
Unknown Object (File)
Wed, Jan 1, 4:43 AM
Unknown Object (File)
Wed, Jan 1, 4:43 AM
Unknown Object (File)
Wed, Jan 1, 4:38 AM
Unknown Object (File)
Thu, Dec 26, 11:44 AM
Unknown Object (File)
Thu, Dec 26, 11:44 AM
Unknown Object (File)
Thu, Dec 26, 11:44 AM
Unknown Object (File)
Wed, Dec 25, 10:25 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