Files
buzz/crates/buzz-relay
Will Pfleger 448407a972 test(relay): configure a community in the Git ban-lookup fixture (#8039)
🤖 Follows #8036 (merged).

The Postgres test `failed_restriction_lookup_is_503_not_403` in
`crates/buzz-relay/src/api/git/transport.rs` sets `nip_fi.mode =
Enforce` but configured no NIP-FI communities. Since #8028, enforce mode
refuses that request at Host-to-community lookup with the same `503
authorization unavailable` the test expects, so the enforce half never
reached the ban lookup it is meant to guard. Deleting the `unavailable`
mapping on the ban-lookup error in `GitAuth::from_request_parts` left
the test passing.

The fixture now binds a community with `test_support::any_host`, the
same way #8028 fixed the other enforce fixtures in this file. With the
mapping deleted, the enforce half now fails.

Found by @loganj's review comment on #8036.

Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
Co-authored-by: Duncan <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@buzz.block.builderlab.xyz>
2026-10-02 08:34:28 -06:00
..