From 61eaf960461c659c9f74cdffdb4da0f7d4a2d841 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Fri, 20 Feb 2026 08:53:16 +0530 Subject: [PATCH] Fix passthrough tests --- .../test_passthrough_registry_updates.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 125ffdb6fa..87309ed36e 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: