test(mcp): accept a peer proxy's discovery GET in the iss callback test

The integration rig runs a second proxy on each worker's database, and its scheduled config reload can load the new MCP server and run its own metadata discovery before the test drains the wire. The test now asserts the issuer saw only metadata discovery and never a token redemption, whatever the GET count
This commit is contained in:
mateo-berri 2026-10-31 13:54:00 -07:00
parent c43a1addf2
commit 66d471fad6

View file

@ -266,7 +266,7 @@ def test_callback_refuses_a_response_without_iss_when_the_authorization_server_a
wire_requests: Final = wire.drain()
wire_method_paths: Final = tuple((request.method, urlsplit(request.target).path) for request in wire_requests)
assert wire_method_paths == (("GET", "/.well-known/oauth-authorization-server"),), wire_method_paths
assert set(wire_method_paths) == {("GET", "/.well-known/oauth-authorization-server")}, wire_method_paths
assert not any(method == "POST" and path == "/token" for method, path in wire_method_paths), wire_method_paths