From 271aba765463db051b492b436cf21d1aecae1b03 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Wed, 14 Jan 2026 15:06:08 -0800 Subject: [PATCH] test_containers_routes_are_llm_api_routes --- .../proxy/auth/test_route_checks.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/test_litellm/proxy/auth/test_route_checks.py b/tests/test_litellm/proxy/auth/test_route_checks.py index ef7f2f3c30d..04f973e9f86 100644 --- a/tests/test_litellm/proxy/auth/test_route_checks.py +++ b/tests/test_litellm/proxy/auth/test_route_checks.py @@ -732,6 +732,25 @@ def test_videos_route_is_llm_api_route(route): assert RouteChecks.is_llm_api_route(route) is True +@pytest.mark.parametrize( + "route", + [ + "/containers", + "/v1/containers", + "/containers/container_123", + "/v1/containers/container_123", + "/containers/container_123/files", + "/v1/containers/container_123/files", + "/containers/container_123/files/file_456", + "/v1/containers/container_123/files/file_456", + ], +) +def test_containers_routes_are_llm_api_routes(route): + """Test that container routes are recognized as LLM API routes""" + + assert RouteChecks.is_llm_api_route(route) is True + + def test_videos_route_accessible_to_internal_users(): """ Test that internal users can access the videos routes.