Add skip_checks for Ims test cases
Add skip_checks for Ims test cases when image_url is not specified in tempest.conf. Change-Id: If8149c744c735c972fa013bf860ba96df7bf7707
This commit is contained in:
parent
58f63ed9f3
commit
6d7c3c14f5
@ -33,6 +33,7 @@ ORM_GROUP = cfg.OptGroup(
|
||||
|
||||
ORM_GROUP_OPTIONS = [
|
||||
cfg.StrOpt("image_url",
|
||||
default='',
|
||||
help="swift container url where image is located"),
|
||||
cfg.StrOpt("ranger_cms_base_url",
|
||||
help="Ranger Project Service URL"),
|
||||
|
@ -29,6 +29,12 @@ SYNC = lockutils.synchronized_with_prefix(PREFIX)
|
||||
|
||||
class TestTempestIms(ims_base.ImsBaseOrmTest):
|
||||
|
||||
@classmethod
|
||||
def skip_checks(cls):
|
||||
super(TestTempestIms, cls).skip_checks()
|
||||
if not CONF.ranger.image_url:
|
||||
raise cls.skipException("Image not available")
|
||||
|
||||
@classmethod
|
||||
def setup_clients(cls):
|
||||
super(TestTempestIms, cls).setup_clients()
|
||||
|
Loading…
x
Reference in New Issue
Block a user