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]

Fix passthrough tests

Sameer Kankute61eaf960461c
diff --git a/tests/pass_through_unit_tests/test_passthrough_registry_updates.py b/tests/pass_through_unit_tests/test_passthrough_registry_updates.py
index 125ffdb6fa0..87309ed36ee 100644
--- a/tests/pass_through_unit_tests/test_passthrough_registry_updates.py
+++ b/tests/pass_through_unit_tests/test_passthrough_registry_updates.py
@@ -18,7 +18,9 @@ def test_update_pass_through_route_updates_registry():
# Setup - Unique IDs to avoid collision with other tests
endpoint_id = "regression-test-endpoint"
path = "/regression-test-path"
- route_key = f"{endpoint_id}:exact:{path}"
+ # Default methods are sorted: DELETE,GET,PATCH,POST,PUT
+ methods_str = "DELETE,GET,PATCH,POST,PUT"
+ route_key = f"{endpoint_id}:exact:{path}:{methods_str}"
target = "http://example.com"
# Cleanup: Ensure clean state before test
@@ -90,7 +92,9 @@ def test_update_subpath_route_updates_registry():
# Setup
endpoint_id = "regression-test-subpath"
path = "/regression-test-wildcard"
- route_key = f"{endpoint_id}:subpath:{path}"
+ # Default methods are sorted: DELETE,GET,PATCH,POST,PUT
+ methods_str = "DELETE,GET,PATCH,POST,PUT"
+ route_key = f"{endpoint_id}:subpath:{path}:{methods_str}"
target = "http://example.com"
if route_key in _registered_pass_through_routes: