mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
refactor(redis): drop unreachable frozen credentials guard
This commit is contained in:
parent
2b0711e4f5
commit
bf73c49d73
2 changed files with 0 additions and 14 deletions
|
|
@ -162,8 +162,6 @@ class ElastiCacheIAMCredentialProvider(CredentialProvider):
|
|||
self._credentials = credentials
|
||||
|
||||
frozen_credentials: Final = credentials.get_frozen_credentials()
|
||||
if frozen_credentials is None:
|
||||
raise RuntimeError("Unable to resolve AWS credentials for ElastiCache IAM Redis authentication")
|
||||
|
||||
try:
|
||||
from botocore.auth import SigV4QueryAuth
|
||||
|
|
|
|||
|
|
@ -136,18 +136,6 @@ def test_elasticache_provider_reports_missing_credentials():
|
|||
provider.get_credentials()
|
||||
|
||||
|
||||
def test_elasticache_provider_reports_missing_frozen_credentials():
|
||||
provider = ElastiCacheIAMCredentialProvider(
|
||||
user_name="iam-user",
|
||||
cache_name="cache.example.com",
|
||||
region="us-east-1",
|
||||
credentials_resolver=_FakeResolver(SimpleNamespace(get_frozen_credentials=lambda: None)),
|
||||
)
|
||||
|
||||
with pytest.raises(RuntimeError, match="Unable to resolve AWS credentials"):
|
||||
provider.get_credentials()
|
||||
|
||||
|
||||
def test_elasticache_provider_reports_missing_signing_dependency(monkeypatch):
|
||||
original_import = builtins.__import__
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue