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
diff --git a/manila_tempest_tests/tests/scenario/test_share_basic_ops.py b/manila_tempest_tests/tests/scenario/test_share_basic_ops.py
index 06a23bf..ef73919 100644
--- a/manila_tempest_tests/tests/scenario/test_share_basic_ops.py
+++ b/manila_tempest_tests/tests/scenario/test_share_basic_ops.py
@@ -243,7 +243,8 @@
@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")