Skip ServersTestBootFromVolume for Ironic
The tests were never launched in upstream as we don't have cinder
enabled on jobs where running smoke tests.
Enable once they are fixed in upstream.
Change-Id: Ie41eb99087f5470a25a317d62ebcd33e9439df47
Related-Prod: PROD-25368
diff --git a/tempest/api/compute/servers/test_create_server.py b/tempest/api/compute/servers/test_create_server.py
index c660821..ffcedd5 100644
--- a/tempest/api/compute/servers/test_create_server.py
+++ b/tempest/api/compute/servers/test_create_server.py
@@ -157,6 +157,12 @@
@classmethod
def skip_checks(cls):
super(ServersTestBootFromVolume, cls).skip_checks()
+ msg = None
if not utils.get_service_list()['volume']:
msg = "Volume service not enabled."
+ # The tests are not launched in upstream and not working with Ironic
+ if (hasattr(CONF.service_available, 'ironic') and
+ CONF.service_available.ironic):
+ msg = "Volume tests are not available for ironic."
+ if msg is not None:
raise cls.skipException(msg)