Add functional tests for Manila consistency groups
This commit adds tempest functional tests for Manila consistency
groups and cgsnapshot objects and actions. By default these tests are
enabled; 3rd party CI systems should disabled these tests through the
RUN_MANILA_CG_TESTS environment variable if their driver does not
support consistency groups.
Partially implements bp manila-consistency-groups
Change-Id: I3297e02ad53c328f0bfe5245fefdb6af80552b4a
diff --git a/manila_tempest_tests/share_exceptions.py b/manila_tempest_tests/share_exceptions.py
index 33478cd..aa688e4 100644
--- a/manila_tempest_tests/share_exceptions.py
+++ b/manila_tempest_tests/share_exceptions.py
@@ -24,6 +24,11 @@
message = "Share instance %(id)s failed to build and is in ERROR status"
+class ConsistencyGroupBuildErrorException(exceptions.TempestException):
+ message = ("Consistency group %(consistency_group_id)s failed to build "
+ "and is in ERROR status")
+
+
class AccessRuleBuildErrorException(exceptions.TempestException):
message = "Share's rule with id %(rule_id)s is in ERROR status"
@@ -32,6 +37,11 @@
message = "Snapshot %(snapshot_id)s failed to build and is in ERROR status"
+class CGSnapshotBuildErrorException(exceptions.TempestException):
+ message = ("CGSnapshot %(cgsnapshot_id)s failed to build and is in ERROR "
+ "status")
+
+
class ShareProtocolNotSpecified(exceptions.TempestException):
message = "Share can not be created, share protocol is not specified"