From 09f52d9aa4e00f652c8cc8ff7d008880f3529edd Mon Sep 17 00:00:00 2001 From: jibanez-staticduo Date: Wed, 9 Sep 2026 21:34:41 +0200 Subject: [PATCH] fix(ci): update websocket fixtures and vulnerable development parser --- tests/proxy_unit_tests/test_user_api_key_auth.py | 3 +++ ui/litellm-dashboard/package-lock.json | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/proxy_unit_tests/test_user_api_key_auth.py b/tests/proxy_unit_tests/test_user_api_key_auth.py index 0cdf3500d50..7b8d20543a5 100644 --- a/tests/proxy_unit_tests/test_user_api_key_auth.py +++ b/tests/proxy_unit_tests/test_user_api_key_auth.py @@ -849,6 +849,7 @@ async def test_user_api_key_auth_websocket(): # Prepare a mock WebSocket object mock_websocket = MagicMock(spec=WebSocket) mock_websocket.query_params = {"model": "some_model"} + mock_websocket.path_params = {} mock_websocket.headers = {"authorization": "Bearer some_api_key"} # Mock the scope attribute that user_api_key_auth_websocket accesses mock_websocket.scope = {"headers": [(b"authorization", b"Bearer some_api_key")]} @@ -872,6 +873,7 @@ async def test_user_api_key_auth_websocket(): assert request_arg.headers["authorization"] == "Bearer some_api_key" assert mock_user_api_key_auth.call_args.kwargs["api_key"] == "Bearer some_api_key" + assert await request_arg.json() == {"model": "some_model"} @pytest.mark.asyncio @@ -885,6 +887,7 @@ async def test_user_api_key_auth_websocket_carries_asgi_path(): mock_websocket = MagicMock(spec=WebSocket) mock_websocket.query_params = {"model": "some_model"} + mock_websocket.path_params = {} mock_websocket.headers = {"authorization": "Bearer some_api_key"} mock_websocket.scope = { "type": "websocket", diff --git a/ui/litellm-dashboard/package-lock.json b/ui/litellm-dashboard/package-lock.json index 44360e94392..1f459bc50ea 100644 --- a/ui/litellm-dashboard/package-lock.json +++ b/ui/litellm-dashboard/package-lock.json @@ -11402,9 +11402,9 @@ } }, "node_modules/smol-toml": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.6.1.tgz", - "integrity": "sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.8.0.tgz", + "integrity": "sha512-kCZr2V3ch9i00x8zXRhjUNVcjG9ijES5dDudkXvUVCT5QlJNQWElSJdZqyPemffHoLNUYwOcou0Fy+ojN0uHSQ==", "dev": true, "license": "BSD-3-Clause", "engines": {