From ca217d5a308c5e89a5385df37d5bb141f5e13c2c Mon Sep 17 00:00:00 2001 From: averevki Date: Mon, 18 May 2026 16:14:12 +0200 Subject: [PATCH] fix: add missing waits for httproute Signed-off-by: averevki --- testsuite/tests/singlecluster/grpc/conftest.py | 1 + .../tests/singlecluster/grpc/test_grpcroute_rule_targeting.py | 1 + testsuite/tests/singlecluster/identical_hostnames/conftest.py | 1 + .../tests/singlecluster/ui/console_plugin/topology/conftest.py | 1 + 4 files changed, 4 insertions(+) diff --git a/testsuite/tests/singlecluster/grpc/conftest.py b/testsuite/tests/singlecluster/grpc/conftest.py index b488471b0..7c89d6728 100644 --- a/testsuite/tests/singlecluster/grpc/conftest.py +++ b/testsuite/tests/singlecluster/grpc/conftest.py @@ -26,6 +26,7 @@ def route(request, gateway, blame, hostname, backend, module_label): route.add_backend(backend) request.addfinalizer(route.delete) route.commit() + route.wait_for_ready() return route diff --git a/testsuite/tests/singlecluster/grpc/test_grpcroute_rule_targeting.py b/testsuite/tests/singlecluster/grpc/test_grpcroute_rule_targeting.py index 52d0675d0..e4a360625 100644 --- a/testsuite/tests/singlecluster/grpc/test_grpcroute_rule_targeting.py +++ b/testsuite/tests/singlecluster/grpc/test_grpcroute_rule_targeting.py @@ -27,6 +27,7 @@ def route(request, gateway, blame, hostname, backend, module_label): route.add_rule(backend, GRPCRouteMatch(method=GRPCMethodMatch(type="Exact", method="DummyUnary"))) # rule-2 request.addfinalizer(route.delete) route.commit() + route.wait_for_ready() return route diff --git a/testsuite/tests/singlecluster/identical_hostnames/conftest.py b/testsuite/tests/singlecluster/identical_hostnames/conftest.py index ebdf836d5..a831d81f9 100644 --- a/testsuite/tests/singlecluster/identical_hostnames/conftest.py +++ b/testsuite/tests/singlecluster/identical_hostnames/conftest.py @@ -22,4 +22,5 @@ def route2(request, gateway, blame, hostname, backend, module_label) -> GatewayR route.add_backend(backend, "/anything/route2") request.addfinalizer(route.delete) route.commit() + route.wait_for_ready() return route diff --git a/testsuite/tests/singlecluster/ui/console_plugin/topology/conftest.py b/testsuite/tests/singlecluster/ui/console_plugin/topology/conftest.py index 430f886d0..3ca442c52 100644 --- a/testsuite/tests/singlecluster/ui/console_plugin/topology/conftest.py +++ b/testsuite/tests/singlecluster/ui/console_plugin/topology/conftest.py @@ -27,6 +27,7 @@ def grpc_route(request, gateway, cluster, blame, module_label): grpc_route = GRPCRoute.create_instance(cluster, blame("grpc"), gateway, {"app": module_label}) request.addfinalizer(grpc_route.delete) grpc_route.commit() + grpc_route.wait_for_ready() return grpc_route