From d99e61f9eb1c4a582b71eb304259ddd3fdeb748f Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 14 Nov 2020 15:31:43 +0100 Subject: Allow connecting vm to the external network MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It fits the Airship deployment where there is neither tenant networks nor floating ips. It only updates the scenarios and must be completed by other changes for all the advanced testcases (Rally, Tempest, etc) Change-Id: Ia19f24d484b7b384c4aeeb3be35aac7aee31baab Signed-off-by: Cédric Ollivier --- functest/opnfv_tests/openstack/api/connection_check.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'functest/opnfv_tests') diff --git a/functest/opnfv_tests/openstack/api/connection_check.py b/functest/opnfv_tests/openstack/api/connection_check.py index adca30ee9..83b72b65b 100644 --- a/functest/opnfv_tests/openstack/api/connection_check.py +++ b/functest/opnfv_tests/openstack/api/connection_check.py @@ -16,6 +16,7 @@ import os_client_config import shade from xtesting.core import testcase +from functest.utils import env from functest.utils import functest_utils @@ -51,6 +52,9 @@ class ConnectionCheck(testcase.TestCase): self.start_time = time.time() self.__logger.debug( "list_services: %s", functest_utils.list_services(self.cloud)) + if env.get('NO_TENANT_NETWORK').lower() == 'true': + self.func_list.remove("list_floating_ip_pools") + self.func_list.remove("list_floating_ips") for func in self.func_list: self.__logger.debug( "%s: %s", func, getattr(self.cloud, func)()) -- cgit 1.2.3-korg