Merge "Implement replication support in huawei driver"
diff --git a/manila_tempest_tests/config.py b/manila_tempest_tests/config.py
index 4203a71..ec9a204 100644
--- a/manila_tempest_tests/config.py
+++ b/manila_tempest_tests/config.py
@@ -168,6 +168,11 @@
help="Defines whether to run replication tests or not. "
"Enable this feature if the driver is configured "
"for replication."),
+ cfg.BoolOpt("run_multiple_share_replicas_tests",
+ default=True,
+ help="Defines whether to run multiple replicas creation test "
+ "or not. Enable this if the driver can create more than "
+ "one replica for a share."),
cfg.BoolOpt("run_migration_tests",
default=False,
help="Enable or disable migration tests."),
diff --git a/manila_tempest_tests/tests/api/test_replication.py b/manila_tempest_tests/tests/api/test_replication.py
index 27db099..d5ec21a 100644
--- a/manila_tempest_tests/tests/api/test_replication.py
+++ b/manila_tempest_tests/tests/api/test_replication.py
@@ -175,6 +175,8 @@
self.delete_share_replica(share_replica["id"])
@test.attr(type=[base.TAG_POSITIVE, base.TAG_BACKEND])
+ @testtools.skipUnless(CONF.share.run_multiple_share_replicas_tests,
+ 'Multiple share replicas tests are disabled.')
def test_add_multiple_share_replicas(self):
rep_domain, pools = self.get_pools_for_replication_domain()
if len(pools) < 3: