From 48a6025a0be00a88ff2b6f35710d6387c2f657ac Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 1 Nov 2026 04:56:41 +0000 Subject: [PATCH] test(redis): stabilize resolution and TLS checks --- litellm-rust/crates/config/tests/generate_redis_resolution.py | 2 -- litellm-rust/crates/config/tests/redis_resolution.json | 3 +-- litellm-rust/crates/redis-client/Cargo.toml | 1 + litellm-rust/crates/redis-client/tests/config.rs | 3 +++ 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/litellm-rust/crates/config/tests/generate_redis_resolution.py b/litellm-rust/crates/config/tests/generate_redis_resolution.py index 204c067d90b..6285780cd7d 100644 --- a/litellm-rust/crates/config/tests/generate_redis_resolution.py +++ b/litellm-rust/crates/config/tests/generate_redis_resolution.py @@ -15,7 +15,6 @@ from pathlib import Path from typing import Final from urllib.parse import urlsplit -import redis import redis.asyncio as async_redis from litellm._redis import ( @@ -334,7 +333,6 @@ def resolve(kwargs: Mapping[str, object], values: Mapping[str, str]) -> dict[str def derive() -> dict[str, object]: return { - "redis_py": redis.__version__, "cases": [ {"name": name, "kwargs": kwargs, "environment": values, "python": resolve(kwargs, values)} for name, kwargs, values in CASES diff --git a/litellm-rust/crates/config/tests/redis_resolution.json b/litellm-rust/crates/config/tests/redis_resolution.json index f1d53998e98..50bde83a1bf 100644 --- a/litellm-rust/crates/config/tests/redis_resolution.json +++ b/litellm-rust/crates/config/tests/redis_resolution.json @@ -1046,6 +1046,5 @@ "tls": null } } - ], - "redis_py": "5.3.1" + ] } diff --git a/litellm-rust/crates/redis-client/Cargo.toml b/litellm-rust/crates/redis-client/Cargo.toml index 9e093b36739..94010b8c59a 100644 --- a/litellm-rust/crates/redis-client/Cargo.toml +++ b/litellm-rust/crates/redis-client/Cargo.toml @@ -24,4 +24,5 @@ tokio = { workspace = true, features = ["sync", "time"] } [dev-dependencies] litellm-redis-testing.workspace = true +rustls.workspace = true rstest.workspace = true diff --git a/litellm-rust/crates/redis-client/tests/config.rs b/litellm-rust/crates/redis-client/tests/config.rs index 4cb1bbab4f9..206cd906e05 100644 --- a/litellm-rust/crates/redis-client/tests/config.rs +++ b/litellm-rust/crates/redis-client/tests/config.rs @@ -32,6 +32,9 @@ async fn ping_over_tls( check_hostname: bool, client_certificate: bool, ) -> Result<(), litellm_redis_client::Error> { + if rustls::crypto::CryptoProvider::get_default().is_none() { + let _ = rustls::crypto::ring::default_provider().install_default(); + } let server = litellm_redis_testing::RedisTlsServer::start(require_client_certificate) .await .unwrap();