InputScenarioUtils load images if glance available
The scenario_images utility of InputScenarioUtils shall
load the image list from glance only if glance is available.
Otherwise the test discovery process will fail if glance
is not available.
Closes bug 1277669
Change-Id: I4be7b9b88d9f8ff42059ece84a3c58df4fb90f1e
diff --git a/tempest/common/utils/test_utils.py b/tempest/common/utils/test_utils.py
index eca716e..2e23782 100644
--- a/tempest/common/utils/test_utils.py
+++ b/tempest/common/utils/test_utils.py
@@ -112,6 +112,8 @@
"""
:return: a scenario with name and uuid of images
"""
+ if not CONF.service_available.glance:
+ return []
if not hasattr(self, '_scenario_images'):
images = self.client.images.list(detailed=False)
self._scenario_images = [