Properly skip nova tests if nova isn't available
This commit adds a missing skip exception on the compute api tests if
nova isn't configured as available. The compute tests all require nova
but this skip check was missing for whatever reason.
Change-Id: Ia7be12a441bfc0f68c089d6b98f0d4ba2fff96ed
Closes-Bug: #1488585
diff --git a/tempest/api/compute/base.py b/tempest/api/compute/base.py
index 894bfde..59fa23c 100644
--- a/tempest/api/compute/base.py
+++ b/tempest/api/compute/base.py
@@ -43,6 +43,8 @@
@classmethod
def skip_checks(cls):
super(BaseComputeTest, cls).skip_checks()
+ if not CONF.service_available.nova:
+ raise cls.skipException("Nova is not available")
if cls._api_version != 2:
msg = ("Unexpected API version is specified (%s)" %
cls._api_version)