litellm/tests/test_litellm/proxy
Jugal D. Bhatt b8fe5f7b17
[MCP Gateway] LiteLLM Fix MCP gateway key auth (#13630)
* Fix - add safe divide by 0 for most places to prevent crash

* Enhance MCPRequestHandler to support permission inheritance and intersection logic for access groups. Added integration tests to verify behavior when keys have no permissions and when both keys and teams have overlapping permissions.

* Remove redundant assertions for permission checks in test_user_api_key_auth_mcp.py to streamline test logic.

* Refactor integration tests for MCPRequestHandler to simplify mocking. Replace complex database mocks with direct function mocks for permission inheritance and intersection scenarios, improving test clarity and maintainability.

* Revert "Fix - add safe divide by 0 for most places to prevent crash"

This reverts commit 265d40e39051e148996b9fb7f354730c57ff23ac.
2025-08-14 16:32:18 -07:00
..
_experimental/mcp_server [MCP Gateway] LiteLLM Fix MCP gateway key auth (#13630) 2025-08-14 16:32:18 -07:00
anthropic_endpoints test fixes 2025-06-25 18:42:06 -07:00
auth test_handle_jwt.py 2025-08-13 17:27:50 -07:00
client Add "keys import" command to CLI (#12620) 2025-07-15 20:14:43 -07:00
common_utils [Fix] Hide sensitive data in /model/info - azure entra client_secret (#13577) 2025-08-13 07:35:53 -07:00
db test_recreate_prisma_client_successful_disconnect 2025-08-01 15:38:48 -07:00
experimental/mcp_server
guardrails fix: 12152 - Redacted sensitive information logged in bedrock guardrails (#13356) 2025-08-07 08:42:11 -07:00
health_endpoints
hooks [Feat] Team Member Rate Limits + Support for using with JWT Auth (#13601) 2025-08-13 17:21:36 -07:00
image_endpoints Feat: add add azure endpoint for image endpoints (#11482) 2025-06-06 10:38:37 -07:00
management_endpoints Add mock user API key authentication in tag management tests 2025-08-14 15:03:21 -07:00
management_helpers [MCP Gateway] access group UI object permission fix (#12523) 2025-07-11 18:25:40 -07:00
middleware
openai_files_endpoint fix(proxy): Add managed_files hook to test_mock_create_audio_file 2025-06-26 10:42:25 -06:00
pass_through_endpoints Azure api_version="preview" support + Bedrock cost tracking via Anthropic /v1/messages (#13072) 2025-07-29 08:13:55 -07:00
spend_tracking [Feat] Responses API Session Handling - Multi media support (#13347) 2025-08-07 10:59:53 -07:00
test_configs
ui_crud_endpoints Litellm encrypt admin UI values (#12675) 2025-07-17 22:24:58 -07:00
vector_store_endpoints [Feat] LLM API Endpoint - Expose OpenAI Compatible /vector_stores/{vector_store_id}/search endpoint (#12749) 2025-07-18 18:18:53 -07:00
test_caching_routes.py [Bug Fix] Ensure /redis/info works on GCP Redis (#11732) 2025-06-14 15:35:09 -07:00
test_common_request_processing.py [Feat] DD Trace - Add instrumentation for streaming chunks (#11338) 2025-06-02 16:48:39 -07:00
test_custom_proxy.py Custom Root Path Improvements: don't require reserving /litellm route (#11460) 2025-06-05 16:36:47 -07:00
test_fastapi_offline_routes.py [Bug Fix] - Get Routes (#13466) 2025-08-09 12:52:23 -07:00
test_health_check_functions.py Implement health check backend API and storage functionality - fix ci/cd (#11852) 2025-06-18 06:57:08 -07:00
test_litellm_pre_call_utils.py Revert "fix: Set user from token user_id for OpenMeter integration (#13029)" (#13107) 2025-07-29 15:49:20 -07:00
test_proxy_cli.py LiteLLM SDK <-> Proxy: support user param + Prisma - remove use_prisma_migrate flag - redundant as this is now default (#13555) 2025-08-12 22:03:39 -07:00
test_proxy_server.py [Proxy changes] Litellm add model price reload schedule for multi-pod (#13470) 2025-08-09 16:12:13 -07:00
test_proxy_types.py Litellm dev 06 06 2025 p1 (#11496) 2025-06-07 09:12:16 -07:00
test_proxy_utils.py litellm/proxy: preserve model order of /v1/models and /model_group/info (#13178) 2025-08-02 08:57:38 -07:00
test_route_llm_request.py Fix create, search vector store error (#13285) 2025-08-06 11:15:17 -07:00
test_spend_log_cleanup.py Fix/gemini api key environment variable support (#12507) 2025-07-29 15:56:01 -07:00
test_swagger_chat_completions.py [Bug Fix] Allow using Swagger for /chat/completions (#13469) 2025-08-09 15:35:45 -07:00
test_team_member_update.py fix mapped tests (#12320) 2025-07-04 10:04:43 -07:00