Skip to content

Commit fbd97ee

Browse files
committed
fix: correct PRM resource in auth tests to match server URL
The tests used a PRM resource (https://api.example.com/mcp) that didn't match the server URL (https://api.example.com/v1/mcp). This was silently ignored before resource validation was added.
1 parent ff57462 commit fbd97ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/client/test_auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ async def test_auth_flow_with_no_tokens(self, oauth_provider: OAuthClientProvide
963963
# Send a successful discovery response with minimal protected resource metadata
964964
discovery_response = httpx.Response(
965965
200,
966-
content=b'{"resource": "https://api.example.com/mcp", "authorization_servers": ["https://auth.example.com"]}',
966+
content=b'{"resource": "https://api.example.com/v1/mcp", "authorization_servers": ["https://auth.example.com"]}',
967967
request=discovery_request,
968968
)
969969

@@ -1116,7 +1116,7 @@ async def test_token_exchange_accepts_201_status(
11161116
# Send a successful discovery response with minimal protected resource metadata
11171117
discovery_response = httpx.Response(
11181118
200,
1119-
content=b'{"resource": "https://api.example.com/mcp", "authorization_servers": ["https://auth.example.com"]}',
1119+
content=b'{"resource": "https://api.example.com/v1/mcp", "authorization_servers": ["https://auth.example.com"]}',
11201120
request=discovery_request,
11211121
)
11221122

0 commit comments

Comments
 (0)