From d13da77107fd9e9166b891409376a67210f7f48b Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 1 Jun 2022 17:15:42 +0200 Subject: [PATCH] Mark functional L3ha tests as unstable All functional tests which uses wait_until_ha_router_has_state() method are now marked as unstable so in case of timeout while waiting for router's state transition, job will not fail. Related-Bug: #1956958 Change-Id: I0e5d08c1a9dc475c7b138c4934ef0331a4339a4c --- neutron/tests/functional/agent/l3/framework.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neutron/tests/functional/agent/l3/framework.py b/neutron/tests/functional/agent/l3/framework.py index a25d52ecf37..31747156963 100644 --- a/neutron/tests/functional/agent/l3/framework.py +++ b/neutron/tests/functional/agent/l3/framework.py @@ -40,6 +40,7 @@ from neutron.common import utils as common_utils from neutron.conf.agent import common as agent_config from neutron.conf.agent.l3 import config as l3_config from neutron.conf import common as common_config +from neutron.tests import base as test_base from neutron.tests.common import l3_test_common from neutron.tests.common import net_helpers from neutron.tests.functional import base @@ -716,8 +717,8 @@ class L3AgentTestFramework(base.BaseSudoTestCase): ha_device = ip_lib.IPDevice(device_name, router.ha_namespace) ha_device.link.set_down() - @staticmethod - def wait_until_ha_router_has_state(router, expected_state): + @test_base.unstable_test("bug 1956958") + def wait_until_ha_router_has_state(self, router, expected_state): def router_has_expected_state(): state = router.ha_state