Page MenuHomePhabricator

[Tunnelbroker] add authentication tests
ClosedPublic

Authored by kamil on Sep 14 2023, 3:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 24, 6:13 PM
Unknown Object (File)
Fri, Jan 24, 6:13 PM
Unknown Object (File)
Fri, Jan 24, 6:13 PM
Unknown Object (File)
Fri, Jan 24, 6:12 PM
Unknown Object (File)
Fri, Jan 24, 6:00 PM
Unknown Object (File)
Tue, Jan 21, 10:20 PM
Unknown Object (File)
Fri, Jan 17, 7:30 PM
Unknown Object (File)
Fri, Jan 17, 7:01 PM
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
Branch
land-tb-auth
Lint
No Lint Coverage
Unit
No Test Coverage

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.