Skip to content

Commit ce46820

Browse files
author
Dean Troyer
committed
Skip Volume v1 functional tests if v1 not present
Volume v1 is gone in Queens Just skip it for now until DevStack does not create a v1 endpoint Change-Id: I2aa2f78b0d5c8ac2048c922c7835e5c4574028cc
1 parent 8f4440a commit ce46820

File tree

1 file changed

+24
-3
lines changed
  • openstackclient/tests/functional/volume/v1

1 file changed

+24
-3
lines changed

openstackclient/tests/functional/volume/v1/common.py

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,35 @@
1212

1313
import fixtures
1414

15-
from openstackclient.tests.functional.volume import base
15+
from openstackclient.tests.functional import base
16+
from openstackclient.tests.functional.volume import base as volume_base
1617

1718

18-
class BaseVolumeTests(base.BaseVolumeTests):
19-
"""Base class for Volume functional tests. """
19+
class BaseVolumeTests(volume_base.BaseVolumeTests):
20+
"""Base class for Volume functional tests"""
21+
22+
@classmethod
23+
def setUpClass(cls):
24+
super(BaseVolumeTests, cls).setUpClass()
25+
# TODO(dtroyer): This needs to be updated to specifically check for
26+
# Volume v1 rather than just 'volume', but for now
27+
# that is enough until we get proper version negotiation
28+
cls.haz_volume_v1 = base.is_service_enabled('volume')
2029

2130
def setUp(self):
2231
super(BaseVolumeTests, self).setUp()
32+
33+
# This class requires Volume v1
34+
# if not self.haz_volume_v1:
35+
# self.skipTest("No Volume v1 service present")
36+
37+
# TODO(dtroyer): We really want the above to work but right now
38+
# (12Sep2017) DevStack still creates a 'volume'
39+
# service type even though there is no service behind
40+
# it. Until that is fixed we need to just skip the
41+
# volume v1 functional tests in master.
42+
self.skipTest("No Volume v1 service present")
43+
2344
ver_fixture = fixtures.EnvironmentVariable(
2445
'OS_VOLUME_API_VERSION', '1'
2546
)

0 commit comments

Comments
 (0)