litellm/tests/integration/management
mika-lt cad4570bbe
fix(scim): skip groups with no team so a PATCH or PUT still deactivates the user (#51829)
* fix(scim): skip groups with no team so a PATCH or PUT still deactivates the user

A group the IdP pushes before LiteLLM has a team for it made the roster
write fail, which answered 404 before the user row was written, so the
user stayed active and their keys kept serving. #37700 made that failure
fatal.

Groups with no team row are now logged and left out of the roster write,
the persisted teams, and the role resolution. Group ops after a replace
now apply in order, as RFC 7644 section 3.5.2 says.

* fix(scim): drop the redundant unchanged-groups return and cover the warning and PATCH admin role

* fix(scim): strip line breaks from the teamless-group warning

* fix(scim): read the PUT role from every requested group, as POST does

A PUT naming only a group with no team no longer demotes an admin whose admin group has no team. The new tests also get typed fixtures and Final locals

* fix(scim): look up the requested teams on the primary database, as the roster write does

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-14 12:06:52 -05:00
..
__init__.py
_batch_file_caps.py
cost_center_service.py
team_metadata_validation_proxy_config.yaml
test_access_group_team_sync.py
test_added_backup_deployment_serves_peer_fallbacks.py fix(proxy): apply new model rows on every worker as soon as they are written (#49034) 2026-10-30 03:19:25 -07:00
test_agent_management.py test(integration): repair agent reads and bulk deletion setup (#49719) 2026-11-02 13:44:45 -08:00
test_auto_router_databricks_classifier_writes.py test(integration): match Databricks classifier budget telemetry (#49382) 2026-10-30 20:13:51 -07:00
test_batch_file_usage_caps.py
test_batch_file_usage_caps_chaos.py
test_batch_limit_metadata_admin_only.py
test_batch_output_file_listing.py
test_budget_list_sorting.py
test_budget_model_limits.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_budget_reset_windows.py
test_budget_updates.py fix(proxy): keep carried end-user spend when a budget reset is retried (#51143) 2026-11-14 01:03:19 +00:00
test_claude_code_plugin_installation_preference.py test(skills): assert patch publication and serialize preference writes (#50252) 2026-11-05 20:16:15 +00:00
test_credential_display_name.py fix(credentials): preserve stored info when patching credentials (#49919) 2026-11-03 16:15:09 -08:00
test_credential_federation_values.py
test_credential_migration_endpoint.py
test_credential_writes_survive_reload.py fix(proxy): hold DB_RECONCILE_LOCK around credential create, update and delete (#50551) 2026-11-07 16:02:44 -08:00
test_customer_budget_reset.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_model_limits.py feat(rate-limit): name the limit that rejected a request in a rate_limited_by header on the 429 (#51228) 2026-11-11 14:39:53 -08:00
test_customer_override_expiry.py fix(proxy): drop a customer override expiry sent without an override (#51667) 2026-11-13 11:24:05 -08:00
test_customer_team_delete_budgets.py fix(proxy): delete a customer team's override budget when the team has no overall budget (#51703) 2026-11-13 13:05:19 -08:00
test_customer_unknown_fields.py feat(customers): reject unknown fields on /customer/new and /customer/update instead of dropping them (#50965) 2026-11-10 18:08:21 +00:00
test_f7_coverage_closeout.py
test_f7_key_coverage_push.py
test_fallback_management_public_names.py fix(fallback): preserve concurrent writes and serve saved configuration (#51245) 2026-11-11 15:26:23 -08:00
test_guardrail_usage_config_guardrail.py
test_health_routing.py fix(proxy)!: stop answering with the literal string "None" as error type and param on the proxy-server, auth, spend, and key health routes (#39540) 2026-10-29 18:20:52 -07:00
test_key_aliases.py
test_key_block_unblock.py
test_key_budget_limits.py
test_key_bulk_update.py
test_key_default_allowed_routes.py
test_key_delete.py
test_key_delete_revocation.py fix(proxy): evict a deleted key from every worker's auth cache (#47609) 2026-10-30 10:20:00 -07:00
test_key_generate.py
test_key_generation_permissions.py
test_key_health.py
test_key_info.py
test_key_info_v2.py
test_key_list.py
test_key_regenerate.py
test_key_reset_spend.py
test_key_route_contracts.py
test_key_service_account_generate.py
test_key_team_change.py
test_key_update.py
test_key_updates.py
test_listing_and_health_contracts.py fix(budgets): reset 12months and other long unit spellings on their short form's schedule (#51672) 2026-11-13 11:08:55 -08:00
test_managed_file_create_ownership.py
test_managed_vector_store_unified_id.py
test_model_credential_name_updates.py
test_model_deployment_lifecycle.py
test_model_health_check.py test(extraction): audit #47473 (#48898) 2026-10-28 17:12:07 -07:00
test_model_hub_custom_metadata.py
test_model_rename_propagation.py
test_organization_budget_clear.py
test_organization_lifecycle.py
test_partial_update_sequences.py
test_pass_through_model_hub.py feat(proxy): publish opted-in pass-through endpoints on the Model Hub (#43905) 2026-11-12 17:46:38 +00:00
test_policy_attachment_runtime.py
test_project_lifecycle.py
test_prompt_management.py
test_ptu_share_guards.py
test_scim_admin_group.py fix(proxy)!: stop answering with the literal string "None" as error type and param on the proxy-server, auth, spend, and key health routes (#39540) 2026-10-29 18:20:52 -07:00
test_scim_group_bulk_roster.py
test_scim_group_delete.py
test_scim_group_member_not_yet_provisioned.py
test_scim_group_pathless_patch.py
test_scim_user_lifecycle.py fix(scim): skip groups with no team so a PATCH or PUT still deactivates the user (#51829) 2026-11-14 12:06:52 -05:00
test_search_tool_crud.py
test_skill_download_history.py chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
test_smoke.py
test_sso_sign_in.py feat(sso): create the team_id_jwt_field team on UI SSO login when team_id_upsert is set (#49256) 2026-10-30 14:39:25 -07:00
test_tag_budget_update.py fix(proxy): stop /tag/update 500 when the body carries the tag's budget_id (#50324) 2026-11-06 08:55:44 -08:00
test_team_available.py
test_team_block.py
test_team_block_unblock.py
test_team_blocking_multi_instance.py
test_team_budget_duration_defaults.py
test_team_budget_limits.py
test_team_bulk_member_add.py
test_team_bulk_member_delete.py
test_team_daily_activity.py
test_team_delete.py
test_team_delete_chaos.py
test_team_delete_inputs.py
test_team_delete_large_membership.py fix(proxy): let /team/delete transactions wait for a pooled connection (#51099) 2026-11-11 12:37:28 -08:00
test_team_delete_member_add_race.py test(integration): repair release qualification timing and labels (#49737) 2026-11-02 18:02:28 -08:00
test_team_delete_member_cache_eviction.py
test_team_delete_prometheus.py
test_team_filter_ui.py
test_team_info.py
test_team_key_bulk_update.py
test_team_list.py
test_team_list_sorting.py
test_team_list_v2.py
test_team_member_add.py
test_team_member_budget_cache.py
test_team_member_delete.py
test_team_member_info_validation.py
test_team_member_lifecycle.py
test_team_member_me.py
test_team_member_reset_budget.py
test_team_member_reset_spend.py
test_team_member_routes.py
test_team_member_update.py
test_team_metadata_schema.py
test_team_metadata_validation.py
test_team_model.py
test_team_new.py
test_team_permissions.py
test_team_permissions_bulk_update.py
test_team_spend_by_user.py
test_team_update.py
test_team_update_multi_instance.py
test_tool_policy_user.py
test_user_delete_revokes_keys.py fix(proxy)!: label shared-handler errors the way the route catch-alls do (#39555) 2026-10-30 06:58:05 -07:00
test_user_list_sorting.py
test_user_rate_limit_updates.py
test_user_routes.py
test_user_updates_wedged_coordination_redis.py test(integration): fix four flaky integration tests (#49554) 2026-11-02 09:23:17 -08:00
test_users_bulk_delete.py
test_vector_store_config_ownership.py
test_vector_store_file_list_managed_ids.py fix(managed_files): keep the upload the managed id encodes when two target models share a deployment (#49420) 2026-11-03 00:58:41 +00:00