Refine skip messages

Fix a few nits in skip messages.

Change-Id: Ie2da617839983f71dab459ce5afa698ad21441a9
This commit is contained in:
Andrea Frittoli 2017-08-01 06:58:03 +01:00
parent 12beb64c78
commit 90d5d47a9a
1 changed files with 4 additions and 4 deletions

View File

@ -30,12 +30,12 @@ class TestCinderVolumes(base.BaseApplicationCatalogScenarioTest):
def skip_checks(cls):
super(TestCinderVolumes, cls).skip_checks()
if not CONF.service_available.cinder:
msg = "Cinder is not available. Skipping volumes attachment tests"
msg = "Cinder is not available. Skipping volumes tests"
raise cls.skipException(msg)
if (not CONF.volume_feature_enabled.api_v3 and
not CONF.volume_feature_enabled.api_v2):
msg = ("Neither cinder v2 nor v3 are not available. Skipping"
"volumes attachment tests")
msg = ("Neither cinder v2 nor v3 are available. Skipping"
"volumes tests")
raise cls.skipException(msg)
@classmethod
@ -53,7 +53,7 @@ class TestCinderVolumes(base.BaseApplicationCatalogScenarioTest):
@classmethod
def resource_setup(cls):
if not CONF.application_catalog.cinder_volume_tests:
msg = "Cinder volumes attachment tests will be skipped."
msg = "Cinder volumes tests will be skipped."
raise cls.skipException(msg)
super(TestCinderVolumes, cls).resource_setup()
cls.linux = CONF.application_catalog.linux_image