Page MenuHomePhabricator

[Tunnelbroker] add authentication tests
ClosedPublic

Authored by kamil on Sep 14 2023, 3:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 6:15 PM
Unknown Object (File)
Tue, Apr 16, 11:38 PM
Unknown Object (File)
Tue, Apr 16, 10:39 PM
Unknown Object (File)
Tue, Apr 16, 7:39 AM
Unknown Object (File)
Tue, Apr 16, 5:33 AM
Unknown Object (File)
Mon, Apr 15, 11:51 PM
Unknown Object (File)
Sat, Apr 13, 3:40 PM
Unknown Object (File)
Sat, Apr 13, 11:06 AM
Subscribers

Details

Summary

I implemented those to make sure D8918 works in both cases, so publishing, maybe will be helpful.

Depends on D8918

Test Plan
  • Start identity service, tunnelbroker
cd services/commtest
cargo test --test identity_tunnelbroker_tests

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 14 2023, 3:20 AM
bartek added inline comments.
services/commtest/tests/identity_tunnelbroker_tests.rs
45 ↗(On Diff #31123)

Nit: Are these unwraps hiding some meaningful error? It's usually a good practice to use expect("error message") instead. This way if this fails, we at least know what exactly failed. Otherwise, error messages are rather vague.

This revision is now accepted and ready to land.Sep 14 2023, 3:39 AM
This revision was automatically updated to reflect the committed changes.