Skip snapshot cloning if there is no capability

Share drivers can support snapshots ('snapshot_support'),
but needn't support cloning snapshots into
shares ('create_share_from_snapshot'). Tempest tests
acknowledge this capability, however, a scenario test
is missing an appropriate skip decorator.

Change-Id: Ia617d54951988f844a7da857a1c842b794191404
This commit is contained in:
Goutham Pacha Ravi 2020-06-19 10:41:55 -07:00
parent 8257d9e9c0
commit f8894b6f0b
1 changed files with 2 additions and 1 deletions

View File

@ -243,7 +243,8 @@ class ShareBasicOpsBase(manager.ShareScenarioTest):
@tc.attr(base.TAG_POSITIVE, base.TAG_BACKEND)
@testtools.skipUnless(
CONF.share.run_snapshot_tests, "Snapshot tests are disabled.")
CONF.share.capability_create_share_from_snapshot_support,
"Create share from snapshot tests are disabled.")
def test_write_data_to_share_created_from_snapshot(self):
# 1 - Create UVM, ok, created
instance = self.boot_instance(wait_until="BUILD")