Manage and unmanage snapshot
Add APIs to support manage and unmanage share snapshots.
Also add support in the Generic driver.
This only supports for DHSS=False driver mode.
Add provider_location column to the share_snapshots table
to save data used to identify the snapshot on the backend.
Also need to bump microversion.
APIImpact
DocImpact
Change-Id: I87a066173c85d969607d132accd9f0e9bd49c235
Implements: blueprint manage-unmanage-snapshot
diff --git a/manila_tempest_tests/tests/api/base.py b/manila_tempest_tests/tests/api/base.py
index f9a678d..8ee5ddd 100644
--- a/manila_tempest_tests/tests/api/base.py
+++ b/manila_tempest_tests/tests/api/base.py
@@ -79,6 +79,7 @@
skip_if_microversion_not_supported = utils.skip_if_microversion_not_supported
+skip_if_microversion_lt = utils.skip_if_microversion_lt
class BaseSharesTest(test.BaseTestCase):
@@ -104,6 +105,13 @@
raise self.skipException(
"Microversion '%s' is not supported." % microversion)
+ def skip_if_microversion_lt(self, microversion):
+ if utils.is_microversion_lt(CONF.share.max_api_microversion,
+ microversion):
+ raise self.skipException(
+ "Microversion must be greater than or equal to '%s'." %
+ microversion)
+
@classmethod
def get_client_with_isolated_creds(cls,
name=None,