Merge "Add run tests as thin provisioning"

This commit is contained in:
Zuul 2021-09-03 18:28:40 +00:00 committed by Gerrit Code Review
commit e4a1e88ef3
2 changed files with 12 additions and 0 deletions

View File

@ -131,6 +131,16 @@ ShareGroup = [
help="Backend capability to create consistent snapshots of "
"share group members. Will be used with creation "
"of new share group types as group spec."),
cfg.BoolOpt("capability_thin_provisioned",
default=False,
help="Defines whether to create shares as thin provisioned, "
"adding the extra spec 'thin_provisioning' as 'True' for "
"setting up the custom share types. It may be useful to "
"run tempest with back end storage systems without much "
"space. Take care enabling it, the manila scheduler "
"capability filter will request this capability in all "
"share types and the the capacity filter will allow "
"oversubscription."),
cfg.StrOpt("share_network_id",
default="",
help="Some backend drivers requires share network "

View File

@ -1081,6 +1081,8 @@ class BaseSharesAdminTest(BaseSharesTest):
extra_specs_dict = {"driver_handles_share_servers": dhss}
if extra_specs:
extra_specs_dict.update(extra_specs)
if CONF.share.capability_thin_provisioned:
extra_specs_dict['thin_provisioning'] = 'True'
return extra_specs_dict
@classmethod