From 66d471fad683b765a5e032ab798ba58055595559 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sat, 31 Oct 2026 13:54:00 -0700 Subject: [PATCH] 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 --- tests/integration/mcp/test_oauth_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/mcp/test_oauth_configuration.py b/tests/integration/mcp/test_oauth_configuration.py index 9fd26461286..695fced7046 100644 --- a/tests/integration/mcp/test_oauth_configuration.py +++ b/tests/integration/mcp/test_oauth_configuration.py @@ -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