litellm/tests/unit/proxy/management_helpers
shrey kharbanda 35e3210edb feat(teams): move custom member budgets onto a new team default in one update
/team/update takes team_member_budget_backfill (none, raise_to_default,
lower_to_default, all_to_default) next to team_member_budget. The server picks
which members with their own budget move onto the new default, comparing
permanent budgets of members on the default's reset schedule, and reports how
many moved. The default row, the member moves and the team row now commit in
one transaction under the team lock, so a failed update leaves nothing half
applied. One update moves at most 50,000 members.

The Admin UI prompt becomes a choice between keeping, raising, lowering or
both, sent in that same request instead of chunked bulk updates, and team
admins who may edit the member budget get it too.

Clearing a member's last limit used to unlink them from every budget row, so
their spend never reset again. They are linked back to the team default now,
and default member budget cache evictions reach every worker.

Resolves LIT-8926
2026-10-23 15:02:34 -07:00
..
__init__.py ci: move tests/proxy_unit_tests to tests/unit/proxy and run the proxy-db shards from litellm-tests (#42903) 2026-09-24 22:59:11 +00:00
team_metadata_validator_impls.py test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -07:00
test_access_group_key_sync.py test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -07:00
test_access_group_model_sync.py test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -07:00
test_access_group_team_sync.py test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -07:00
test_audit_log_callbacks.py test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -07:00
test_audit_logs_proxy.py fix(proxy): track and drain management audit log writes on shutdown (#43594) 2026-10-16 08:41:34 +00:00
test_auto_router_availability.py fix(auto-router): separate tuning and select chained heuristic (#44928) 2026-10-06 13:43:53 -07:00
test_auto_router_permissions.py fix(databricks): call the ai_decide AI Function route for decisions and the auto-router (#45722) 2026-10-10 23:58:16 -07:00
test_bulk_user_creation.py feat(proxy): cap batch file records, daily batch uploads, and per-file downloads (#43632) 2026-10-06 03:06:36 +00:00
test_bulk_user_deletion.py fix(scim)!: delete a group through the team delete's bulk path instead of one member at a time (#47544) 2026-10-21 00:59:23 +00:00
test_management_helpers_utils.py feat(teams): move custom member budgets onto a new team default in one update 2026-10-23 15:02:34 -07:00
test_object_permission_utils.py refactor(proxy): expose public names for private proxy helpers (#45170) 2026-10-07 18:59:27 -07:00
test_resource_display_names.py test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -07:00
test_team_member_default_budget.py feat(teams): move custom member budgets onto a new team default in one update 2026-10-23 15:02:34 -07:00
test_team_member_permission_checks.py test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -07:00
test_team_metadata_validation.py refactor(proxy): expose public names for private proxy helpers (#45170) 2026-10-07 18:59:27 -07:00
test_team_roster_sync.py fix(test): wait for the wedged Redis to be reached instead of a fixed 0.1s sleep in team roster sync tests (#46727) 2026-10-15 18:54:26 +00:00