aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-10-21 12:32:15 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-10-21 14:07:02 +0200
commit1a6df95057d586c2db9883c483d77b55d33c28bb (patch)
tree728f94d17b2ca0648e36804ed192ce1cc2603c9e
parent73e80a960ea100cbd3616d3007ab321158f7b6d2 (diff)
List neutron exts and service providers in connection_check
It eases debugging as well [1]. [1] https://artifacts.opnfv.org/logs/functest/lf-pod1/2018-10-20_12-23-41/patrole/tempest-report.html Change-Id: Ie9ddc280fc239c5e0887347d434839940e7a3240 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 87f5db13d594075903face649f877478edb3b285)
-rw-r--r--functest/opnfv_tests/openstack/api/connection_check.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/api/connection_check.py b/functest/opnfv_tests/openstack/api/connection_check.py
index a7a780f67..48d06211b 100644
--- a/functest/opnfv_tests/openstack/api/connection_check.py
+++ b/functest/opnfv_tests/openstack/api/connection_check.py
@@ -32,12 +32,14 @@ class ConnectionCheck(testcase.TestCase):
self.cloud = None
def run(self, **kwargs):
+ # pylint: disable=protected-access
"""Run all read operations to check connections"""
status = testcase.TestCase.EX_RUN_ERROR
try:
assert self.cloud
self.start_time = time.time()
- for func in ["list_aggregates", "list_domains", "list_endpoints",
+ for func in ["get_network_extensions",
+ "list_aggregates", "list_domains", "list_endpoints",
"list_floating_ip_pools", "list_floating_ips",
"list_hypervisors", "list_keypairs", "list_networks",
"list_ports", "list_role_assignments", "list_roles",
@@ -45,6 +47,10 @@ class ConnectionCheck(testcase.TestCase):
"list_subnets"]:
self.__logger.debug(
"%s: %s", func, getattr(self.cloud, func)())
+ data = self.cloud._network_client.get("/service-providers.json")
+ self.__logger.debug(
+ "list_service_providers: %s",
+ self.cloud._get_and_munchify('service_providers', data))
self.result = 100
status = testcase.TestCase.EX_OK
except Exception: # pylint: disable=broad-except