42 lines
5.2 KiB
Plaintext
42 lines
5.2 KiB
Plaintext
============================= test session starts =============================
|
|
platform win32 -- Python 3.11.6, pytest-9.0.0, pluggy-1.6.0
|
|
rootdir: D:\coolify-projects-mcp\.worktrees\audit-mcp-hub
|
|
configfile: pyproject.toml
|
|
plugins: anyio-4.12.1, asyncio-1.3.0, cov-7.0.0, mock-3.15.1, timeout-2.4.0
|
|
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
|
|
collected 4 items
|
|
|
|
tests\test_dynamic_endpoints_integration.py .FFF [100%]
|
|
|
|
================================== FAILURES ===================================
|
|
____________________ test_dynamic_endpoint_invalid_method _____________________
|
|
tests\test_dynamic_endpoints_integration.py:68: in test_dynamic_endpoint_invalid_method
|
|
assert response.status_code == 200 # JSON-RPC errors are 200 OK
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
E assert 401 == 200
|
|
E + where 401 = <Response [401 Unauthorized]>.status_code
|
|
------------------------------ Captured log call ------------------------------
|
|
WARNING core.auth:auth.py:57 Invalid API key attempt
|
|
WARNING server:server.py:4220 MCP OAuth: Invalid token for /u/user-123/myblog/mcp
|
|
______________________ test_dynamic_endpoint_initialize _______________________
|
|
tests\test_dynamic_endpoints_integration.py:90: in test_dynamic_endpoint_initialize
|
|
assert response.status_code == 200
|
|
E assert 401 == 200
|
|
E + where 401 = <Response [401 Unauthorized]>.status_code
|
|
------------------------------ Captured log call ------------------------------
|
|
WARNING core.auth:auth.py:57 Invalid API key attempt
|
|
WARNING server:server.py:4220 MCP OAuth: Invalid token for /u/user-123/myblog/mcp
|
|
____________________ test_dynamic_endpoint_mismatched_user ____________________
|
|
tests\test_dynamic_endpoints_integration.py:110: in test_dynamic_endpoint_mismatched_user
|
|
assert response.status_code == 403
|
|
E assert 401 == 403
|
|
E + where 401 = <Response [401 Unauthorized]>.status_code
|
|
------------------------------ Captured log call ------------------------------
|
|
WARNING core.auth:auth.py:57 Invalid API key attempt
|
|
WARNING server:server.py:4220 MCP OAuth: Invalid token for /u/user-123/myblog/mcp
|
|
=========================== short test summary info ===========================
|
|
FAILED tests/test_dynamic_endpoints_integration.py::test_dynamic_endpoint_invalid_method
|
|
FAILED tests/test_dynamic_endpoints_integration.py::test_dynamic_endpoint_initialize
|
|
FAILED tests/test_dynamic_endpoints_integration.py::test_dynamic_endpoint_mismatched_user
|
|
========================= 3 failed, 1 passed in 3.77s =========================
|