mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
Merge pull request #40425 from CaptainAni187/fix_aws_tests_ambient_ssl_cert_file
test: isolate bedrock aws tests from ambient SSL env vars
This commit is contained in:
commit
f89e9ac749
1 changed files with 8 additions and 0 deletions
|
|
@ -38,6 +38,14 @@ def flush_shared_bedrock_iam_cache():
|
|||
yield
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _clean_ssl_env(monkeypatch):
|
||||
"""get_ssl_verify reads these, so the sts client's verify= would otherwise depend on
|
||||
the ambient environment. The published images set SSL_CERT_FILE."""
|
||||
for env_var in ("SSL_CERT_FILE", "SSL_VERIFY"):
|
||||
monkeypatch.delenv(env_var, raising=False)
|
||||
|
||||
|
||||
def test_base_aws_llm_instances_share_process_wide_iam_cache():
|
||||
"""Regression LIT-2662: new instances must reuse iam_cache (Bedrock passthrough is per-request)."""
|
||||
first = BaseAWSLLM()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue