Page MenuHomePhabricator

[Tunnelbroker] add authentication tests
ClosedPublic

Authored by kamil on Sep 14 2023, 3:10 AM.
Tags
None
Referenced Files
F3344963: D9200.diff
Fri, Nov 22, 4:59 AM
Unknown Object (File)
Mon, Oct 28, 11:02 PM
Unknown Object (File)
Sun, Oct 27, 3:42 PM
Unknown Object (File)
Oct 14 2024, 1:26 AM
Unknown Object (File)
Sep 27 2024, 10:26 PM
Unknown Object (File)
Sep 27 2024, 10:26 PM
Unknown Object (File)
Sep 27 2024, 10:26 PM
Unknown Object (File)
Sep 27 2024, 10:26 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

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.