functional test fails with SDKException
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack SDK |
New
|
Undecided
|
Unassigned |
Bug Description
$ tox -e functional
Failed to import test module: openstack.
Traceback (most recent call last):
File "/Users/
module = self._get_
File "/Users/
__import_
File "openstack/
@unittest.
File "openstack/
conn.
File "openstack/
sc_endpoint)
File "openstack/
response = self.get(
File "/Users/
return self.request(url, 'GET', **kwargs)
File "openstack/
raise exceptions.
SDKException: Connection failure that may be retried.
The test run didn't actually run any tests
I'm trying to functional test with trystack.org. but ceilometer endpoint gets connection failure.
here is just simple path for just skip test when endpoint connection failed. but I'm not sure it is a right solution.
diff --git a/openstack/
index 3d37081..ec168b3 100644
--- a/openstack/
+++ b/openstack/
@@ -17,6 +17,7 @@ import unittest
from keystoneauth1 import exceptions as _exceptions
from openstack import connection
+from openstack import exceptions
#: Defines the OpenStack Client Config (OCC) cloud key in your OCC config
@@ -65,6 +66,10 @@ def service_
return True
except _exceptions.
return False
+ except exceptions.
+ if isinstance(e.cause, _exceptions.
+ return False
+ raise
class BaseFunctionalT
description: | updated |