litellm/tests/unit/proxy/management_endpoints
kenneth-berri 145b12feed
fix(proxy): model_max_budget entry on a model group covers its global aliases (#52385)
* fix(proxy): model_max_budget entry on a model group covers its global aliases

A request sent under a router_settings.model_group_alias name now resolves to the budget entry on the model group it routes to, so it is gated by that entry and charged to its window. An entry named after the alias still wins for that alias.

Co-authored-by: artsntech <346421490+artsntech@users.noreply.github.com>

* fix(proxy): keep access groups named like a global alias in the budget update check

An access group that shares its name with a model_group_alias still budgets its members at request time, so the update check has to keep seeing its members too.

---------

Co-authored-by: artsntech <346421490+artsntech@users.noreply.github.com>
2026-11-17 16:42:52 -08:00
..
management_v1 feat(proxy): page team members and stop loading full rosters for /team/info callers (#51885) 2026-11-17 16:30:52 -08:00
policy_endpoints refactor(types): replace Any with proven types in 14 files (#48928) 2026-10-29 07:26:07 -07:00
scim fix(scim): answer every /scim/v2 error with the RFC 7644 SCIM Error schema (#51322) 2026-11-17 19:10:33 +00:00
search_endpoints feat(search): add Microsoft Web IQ provider (#50883) 2026-11-10 22:43:36 +00:00
sso ci(unit): cut unit check time with cheaper per-test resets and fewer non-unit tests (#51864) 2026-11-14 15:41:30 -08:00
usage_endpoints feat(ui): unify gateway and usage assistance as Aria Agent (#48082) 2026-10-23 20:24:19 +00:00
__init__.py
jwt_key_mapping_doubles.py
test_access_group_endpoints.py feat(access-groups): name group vector stores and list them on team info (#51484) 2026-11-13 07:53:04 -08:00
test_access_group_management.py fix(budgets): invalidate customer hierarchy caches through stored team IDs (#51654) 2026-11-13 18:43:38 +00:00
test_activity_tenant_scoping.py
test_auto_router_endpoints.py feat(shadow-eval): add optional rubric grades (#52321) 2026-11-17 12:04:31 -08:00
test_budget_endpoints.py fix(budgets): invalidate customer hierarchy caches through stored team IDs (#51654) 2026-11-13 18:43:38 +00:00
test_cache_settings_endpoints.py
test_callback_management_endpoints.py
test_common_daily_activity.py feat(spend): report guardrail spend separately in daily activity (#51010) 2026-11-10 13:02:26 -08:00
test_common_utils.py
test_compliance_endpoints.py
test_config_override_endpoints.py
test_coordination_redis_endpoints.py
test_cost_estimate_endpoint.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_cost_tracking_settings.py fix(proxy): keep a cost settings update from being undone by an in-flight config reload (#51273) 2026-11-12 00:54:10 +00:00
test_credential_migration.py
test_customer_budget.py fix(proxy): /customer/new budgets reset on the same schedule as other budgets (#51689) 2026-11-13 19:22:14 +00:00
test_customer_endpoints.py feat(proxy): customer budget rollup, reset on the budget row's window, named templates, team overrides, multi-window limits and pause_allow_increase (#51582) 2026-11-13 16:05:35 +00:00
test_daily_activity_routes.py feat(ui): add Activity tabs to resource details (#50630) 2026-11-11 18:23:01 -08:00
test_delete_callbacks_endpoint.py
test_delete_verification_tokens_failed.py
test_encryption_endpoints.py
test_entraid_app_roles.py
test_gateway_request_endpoints.py refactor(proxy): inject gateway activity through a typed repository (#49116) 2026-10-30 16:25:11 -07:00
test_id_jag_assertion_capture.py
test_internal_user_endpoints.py fix(proxy)!: match the sign-in email fallback to the right user (#51897) 2026-11-15 19:13:38 -08:00
test_jwt_key_mapping.py fix(proxy): evict issuer-scoped JWT mapping misses on global mapping writes (#52350) 2026-11-17 14:38:53 -08:00
test_key_budget_change.py feat(proxy): customer budget rollup, reset on the budget row's window, named templates, team overrides, multi-window limits and pause_allow_increase (#51582) 2026-11-13 16:05:35 +00:00
test_key_generate_prisma.py test: remove dead skip-marked tests and rewrite the Redis buffer drain test (#52063) 2026-11-16 10:50:52 -08:00
test_key_management_endpoints.py feat(auth): decide key and JWT authentication in a Rust core (#51374) 2026-11-17 14:07:47 +09:00
test_management_route_coverage.py
test_mcp_connector_import.py
test_mcp_management_endpoints.py fix(mcp): use the saved description and server name in registry.json (#52319) 2026-11-17 13:36:07 -08:00
test_mcp_servers.py refactor(mcp): drop the experimental label from the MCP server and client paths (#48513) 2026-10-27 17:47:50 +00:00
test_model_deprecation_alerts.py feat(proxy): add model deprecation alerts with daily requests by key (#50022) 2026-11-05 04:03:42 +00:00
test_model_insights_endpoints.py feat(alerts): detect daily changes in recorded usage (#50666) 2026-11-11 18:23:02 -08:00
test_model_management_endpoints.py fix(proxy): preserve explicit model prices when metadata echoes null (#48746) 2026-11-16 08:33:45 -08:00
test_org_admin_team_access.py
test_organization_endpoints.py feat(budgets): add per-model tpm and rpm limit maps to budgets and customers (#50797) 2026-11-09 22:15:18 -08:00
test_password_endpoints.py feat(proxy): hash UI passwords with PBKDF2 in FIPS mode (#49874) 2026-11-06 01:31:59 -08:00
test_policy_endpoints.py fix(guardrails): log requests that a guardrail blocks on /apply_guardrail (#51014) 2026-11-16 15:18:08 -08:00
test_project_org_authz.py
test_prompt_cache_prediction.py feat(callbacks-parallel-request-limiter): port parallel request limiter v3 to a rust callback (#51537) 2026-11-16 22:56:38 -08:00
test_prompt_caching_requests.py fix(proxy): cancel the Admin UI's raw spend-log reads in Postgres after 30s (#49965) 2026-11-03 16:07:00 -08:00
test_ptu_consumption.py fix(router): serve a team's wildcard deployment before a proxy-wide wildcard (#48490) 2026-10-26 17:06:09 -07:00
test_ptu_model_settings.py refactor(router): delete the python router core, the rust core is the only core (#50178) 2026-11-05 10:40:46 -08:00
test_request_error_endpoints.py
test_roi_calculator_endpoints.py
test_router_settings_endpoints.py
test_saml_sso.py refactor(mcp): drop the experimental label from the MCP server and client paths (#48513) 2026-10-27 17:47:50 +00:00
test_session_endpoints.py
test_sso_helper_utils.py refactor(rust_bridge): route every Rust-to-Python call through host modules (#50822) 2026-11-11 01:57:54 +00:00
test_subscription_accounts.py feat(auth): decide key and JWT authentication in a Rust core (#51374) 2026-11-17 14:07:47 +09:00
test_tag_management_endpoints.py feat(control_plane): dataplane registry, credential strategies and client (#49655) 2026-11-16 17:36:23 +00:00
test_team_admin_field_permissions.py feat(dynamic_rate_limiter): customer organizations and keys borrow idle model capacity and split class shares (#51705) 2026-11-15 12:05:58 -08:00
test_team_callback_endpoints.py
test_team_default_params.py feat(team): let default_team_params attach access_group_ids to every new team (#49908) 2026-11-05 19:58:51 -08:00
test_team_endpoints.py fix(proxy): model_max_budget entry on a model group covers its global aliases (#52385) 2026-11-17 16:42:52 -08:00
test_team_model_alias_merge.py
test_tool_management_endpoints.py
test_ui_sso.py feat(auth): decide key and JWT authentication in a Rust core (#51374) 2026-11-17 14:07:47 +09:00
test_user_agent_analytics_endpoints.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
test_workflow_management_endpoints.py feat(control_plane): dataplane registry, credential strategies and client (#49655) 2026-11-16 17:36:23 +00:00