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 15, 2:37 AM
Unknown Object (File)
Tue, Jan 14, 8:43 PM
Unknown Object (File)
Tue, Jan 7, 4:18 PM
Unknown Object (File)
Mon, Jan 6, 8:31 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:43 AM
Unknown Object (File)
Wed, Jan 1, 4:38 AM
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
No Lint Coverage
Unit
No Test Coverage

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

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

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