From 3cec072a2fdd7d814e8597d363f417e01df89ef8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Fri, 20 Sep 2019 05:01:52 +0200 Subject: [PATCH] Print OpenStack version in connection_check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Functest is becoming very used and sometimes vs older OpenStack releases (ONAP Openlab). It will ease debugging and easily find backward incompatibilities. Even if that value could be checked for OPNFV Release Management, testing older SUT is not considered as false from a Functest statepoint. Change-Id: Idd782cc98ec4d36f726e233fc5d011308e9d6b71 Signed-off-by: Cédric Ollivier --- functest/opnfv_tests/openstack/api/connection_check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functest/opnfv_tests/openstack/api/connection_check.py b/functest/opnfv_tests/openstack/api/connection_check.py index 7a320b5e4..cebb63108 100644 --- a/functest/opnfv_tests/openstack/api/connection_check.py +++ b/functest/opnfv_tests/openstack/api/connection_check.py @@ -17,6 +17,7 @@ import shade from xtesting.core import testcase from functest.utils import env +from functest.utils import functest_utils class ConnectionCheck(testcase.TestCase): @@ -59,6 +60,7 @@ class ConnectionCheck(testcase.TestCase): self.__logger.debug( "list_service_providers: %s", self.cloud._get_and_munchify('service_providers', data)) + functest_utils.get_openstack_version(self.cloud) self.result = 100 status = testcase.TestCase.EX_OK except Exception: # pylint: disable=broad-except -- 2.16.6