Skip test_router_is_scheduled_on_l3_agents when testing a distributed router

Change-Id: Ibc17242f91d86dba4c6158d4c2bb4c4c6025f789
This commit is contained in:
Federico Ressi 2022-06-13 13:22:54 +02:00
parent ad137a76fd
commit 60cde436a3
1 changed files with 5 additions and 1 deletions

View File

@ -98,7 +98,11 @@ class RouterTest(testtools.TestCase):
@pytest.mark.flaky(reruns=3, reruns_delay=60)
@neutron.skip_if_missing_networking_extensions('l3_agent_scheduler')
def test_router_is_scheduled_on_l3_agents(self):
router_agent = neutron.find_l3_agent_hosting_router(self.router['id'],
router = self.router
if router.get('distributed'):
# TODO(fressi): check whenever a DVR router can be scheduled
self.skipTest("Router is distributed")
router_agent = neutron.find_l3_agent_hosting_router(router['id'],
unique=True)
self._check_routers_namespace_on_host(router_agent['host'])