Update share quota functional tests
- Updates the existent functional tests to accomplish with the two
new quotas for share replicas.
- Add new functional tests for share replicas
Depends-On: I8ba7bc6f167c28d6c169b2187d0e1bda7cad3f69
Change-Id: I9c5df364bca666bbc32fb10b100a38f78888088a
diff --git a/manila_tempest_tests/utils.py b/manila_tempest_tests/utils.py
index 2ea623d..b22a5c1 100644
--- a/manila_tempest_tests/utils.py
+++ b/manila_tempest_tests/utils.py
@@ -23,6 +23,7 @@
CONF = config.CONF
SHARE_NETWORK_SUBNETS_MICROVERSION = '2.51'
+SHARE_REPLICA_QUOTAS_MICROVERSION = "2.53"
def get_microversion_as_tuple(microversion_str):
@@ -202,6 +203,10 @@
return is_microversion_supported(SHARE_NETWORK_SUBNETS_MICROVERSION)
+def share_replica_quotas_are_supported():
+ return is_microversion_supported(SHARE_REPLICA_QUOTAS_MICROVERSION)
+
+
def share_network_get_default_subnet(share_network):
return next((
subnet for subnet in share_network.get('share_network_subnets', [])