Merge branch 'litellm_regenerate_no_body_secret_sync' into litellm_key_alias_update_secret_sync

This commit is contained in:
yassin 2026-09-16 18:34:37 +00:00
commit 81799a131b

View file

@ -421,7 +421,6 @@ class TestRotateVirtualKeyInSecretManager:
async def test_rotated_hook_without_request_body_syncs_secret_manager(
self, monkeypatch: pytest.MonkeyPatch, key_alias: str | None
):
"""POST /key/{key}/regenerate with no body (data=None) must still write the new key to the secret manager."""
import litellm
from litellm.proxy._types import GenerateKeyResponse, LiteLLM_VerificationToken
from litellm.secret_managers.base_secret_manager import BaseSecretManager