mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-01 07:03:02 +00:00
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:
parent
c43a1addf2
commit
66d471fad6
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue