Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test: isolate bedrock aws tests from ambient SSL env vars

Animesh Kumar6195fbf5f3aa
diff --git a/tests/test_litellm/llms/bedrock/test_base_aws_llm.py b/tests/test_litellm/llms/bedrock/test_base_aws_llm.py
index f854d806bdc..a1c28f36e70 100644
--- a/tests/test_litellm/llms/bedrock/test_base_aws_llm.py
+++ b/tests/test_litellm/llms/bedrock/test_base_aws_llm.py
@@ -38,6 +38,14 @@ def flush_shared_bedrock_iam_cache():
yield
[email protected](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()