From: Cédric Ollivier Date: Wed, 2 Dec 2020 16:34:06 +0000 (+0100) Subject: Remove list_routers call if no tenant network X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=04a5953273a67c5d25413097a6b105e7ea35d05b;p=functest.git Remove list_routers call if no tenant network Change-Id: I49ea5cc9207048f5dda49fcd0463ef333970ecb5 Signed-off-by: Cédric Ollivier (cherry picked from commit dec0d59da6b90afc2e0f385f3573479d6843bb99) --- diff --git a/functest/opnfv_tests/openstack/api/connection_check.py b/functest/opnfv_tests/openstack/api/connection_check.py index 83b72b65b..f3b35e9d9 100644 --- a/functest/opnfv_tests/openstack/api/connection_check.py +++ b/functest/opnfv_tests/openstack/api/connection_check.py @@ -55,6 +55,7 @@ class ConnectionCheck(testcase.TestCase): if env.get('NO_TENANT_NETWORK').lower() == 'true': self.func_list.remove("list_floating_ip_pools") self.func_list.remove("list_floating_ips") + self.func_list.remove("list_routers") for func in self.func_list: self.__logger.debug( "%s: %s", func, getattr(self.cloud, func)())