summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/volume
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2017-09-14 11:06:51 -0500
committerDean Troyer <dtroyer@gmail.com>2017-09-14 11:16:11 -0500
commit5309bf5f873aba4e994c9011a893987c40d56eda (patch)
tree9e1bf90f6bb27cc6e0a5f9b4ef81ef8431d21599 /openstackclient/tests/functional/volume
parent5e5239d5eb635470b0c3bc63c4a6263808c41c9b (diff)
parentf63bb180036c0f2d096eefaaaf2fbdd60a427343 (diff)
downloadpython-openstackclient-5309bf5f873aba4e994c9011a893987c40d56eda.tar.gz
Merge remote-tracking branch 'origin/master' into f4-merge-branch
Change-Id: Ie6c321e67aa9338334e4649879e60847a5d1eb56
Diffstat (limited to 'openstackclient/tests/functional/volume')
-rw-r--r--openstackclient/tests/functional/volume/v1/common.py27
1 files changed, 24 insertions, 3 deletions
diff --git a/openstackclient/tests/functional/volume/v1/common.py b/openstackclient/tests/functional/volume/v1/common.py
index 4978cea3..bb3c674e 100644
--- a/openstackclient/tests/functional/volume/v1/common.py
+++ b/openstackclient/tests/functional/volume/v1/common.py
@@ -12,14 +12,35 @@
import fixtures
-from openstackclient.tests.functional.volume import base
+from openstackclient.tests.functional import base
+from openstackclient.tests.functional.volume import base as volume_base
-class BaseVolumeTests(base.BaseVolumeTests):
- """Base class for Volume functional tests. """
+class BaseVolumeTests(volume_base.BaseVolumeTests):
+ """Base class for Volume functional tests"""
+
+ @classmethod
+ def setUpClass(cls):
+ super(BaseVolumeTests, cls).setUpClass()
+ # TODO(dtroyer): This needs to be updated to specifically check for
+ # Volume v1 rather than just 'volume', but for now
+ # that is enough until we get proper version negotiation
+ cls.haz_volume_v1 = base.is_service_enabled('volume')
def setUp(self):
super(BaseVolumeTests, self).setUp()
+
+ # This class requires Volume v1
+ # if not self.haz_volume_v1:
+ # self.skipTest("No Volume v1 service present")
+
+ # TODO(dtroyer): We really want the above to work but right now
+ # (12Sep2017) DevStack still creates a 'volume'
+ # service type even though there is no service behind
+ # it. Until that is fixed we need to just skip the
+ # volume v1 functional tests in master.
+ self.skipTest("No Volume v1 service present")
+
ver_fixture = fixtures.EnvironmentVariable(
'OS_VOLUME_API_VERSION', '1'
)