refactor(redis): drop unreachable frozen credentials guard

This commit is contained in:
eugene-yao-zocdoc 2026-09-09 10:17:53 -04:00
parent 2b0711e4f5
commit bf73c49d73
2 changed files with 0 additions and 14 deletions

View file

@ -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

View file

@ -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__