|
12 | 12 |
|
13 | 13 | import fixtures |
14 | 14 |
|
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 |
16 | 17 |
|
17 | 18 |
|
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') |
20 | 29 |
|
21 | 30 | def setUp(self): |
22 | 31 | 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 | + |
23 | 44 | ver_fixture = fixtures.EnvironmentVariable( |
24 | 45 | 'OS_VOLUME_API_VERSION', '1' |
25 | 46 | ) |
|
0 commit comments