litellm/tests/unit/proxy/utils
VimarshDwivedi c0c6e841f3 fix(proxy): check_view_exists honors the schema pinned on DATABASE_URL
check_view_exists() only ever read DATABASE_SCHEMA (defaulting to
"public") to decide which pg_views to query, even though an operator
who pins DATABASE_URL directly (rather than assembling it from
discrete DATABASE_* vars) never sets DATABASE_SCHEMA at all -- Prisma
resolves the schema from the URL's own ?schema= param. Deployments on
a non-public schema got a false "Not all views exist in db" warning on
every startup despite every view existing and being queryable.

Add schema_from_database_url() to read the ?schema= param directly off
DATABASE_URL, and fall back to it before defaulting to "public".
2026-10-15 12:56:01 +05:30
..
helpers fix(proxy): use budget reset window for projected spend alerts (#31942) 2026-10-08 12:02:40 -07:00
prisma_and_spend fix(proxy): check_view_exists honors the schema pinned on DATABASE_URL 2026-10-15 12:56:01 +05:30
proxy_logging fix(proxy): skip failure rows for expired Admin UI session keys on dashboard info routes (#45881) 2026-10-12 13:56:05 -07:00
__init__.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00