From a9aa4337a9638bcff099789a229238179eee03fb Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Wed, 10 Jun 2026 21:18:48 +0000 Subject: [PATCH] test(faros): proxy admin placeholder user id is not reported as a Faros user https://claude.ai/code/session_01S79266vJDYzh7ay3nQ9ENW --- .../integrations/faros/test_faros_logger.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/test_litellm/integrations/faros/test_faros_logger.py b/tests/test_litellm/integrations/faros/test_faros_logger.py index 526329964ac..84a9f375366 100644 --- a/tests/test_litellm/integrations/faros/test_faros_logger.py +++ b/tests/test_litellm/integrations/faros/test_faros_logger.py @@ -73,6 +73,25 @@ async def test_user_uid_resolution_priority(): ] +@pytest.mark.asyncio +async def test_proxy_admin_placeholder_is_not_a_user(): + from litellm.constants import LITELLM_PROXY_ADMIN_NAME + + logger = make_logger() + + await logger.async_log_success_event( + make_kwargs(user_id=LITELLM_PROXY_ADMIN_NAME, end_user="cust"), + None, + None, + None, + ) + await logger.async_log_success_event( + make_kwargs(user_id=LITELLM_PROXY_ADMIN_NAME), None, None, None + ) + + assert [record["user_uid"] for record in logger.log_queue] == ["cust", "unknown"] + + @pytest.mark.asyncio async def test_proxy_admin_placeholder_user_id_is_ignored(): logger = make_logger()