Moves test_shares_actions.py test from manila repo
Moves "Add count info in /shares and /shares/detail
response" related tempest tests.
Related change: I12c41a46140b04f26565d8934e0326480477c612
TrivialFix
Change-Id: I5d310073383787094651f12f5792a8c748781ec7
diff --git a/manila_tempest_tests/config.py b/manila_tempest_tests/config.py
index ab76f8f..e33dba8 100644
--- a/manila_tempest_tests/config.py
+++ b/manila_tempest_tests/config.py
@@ -30,7 +30,7 @@
help="The minimum api microversion is configured to be the "
"value of the minimum microversion supported by Manila."),
cfg.StrOpt("max_api_microversion",
- default="2.41",
+ default="2.42",
help="The maximum api microversion is configured to be the "
"value of the latest microversion supported by Manila."),
cfg.StrOpt("region",
diff --git a/manila_tempest_tests/tests/api/test_shares_actions.py b/manila_tempest_tests/tests/api/test_shares_actions.py
index cf179bf..7d28d83 100644
--- a/manila_tempest_tests/tests/api/test_shares_actions.py
+++ b/manila_tempest_tests/tests/api/test_shares_actions.py
@@ -390,6 +390,14 @@
self.assertEqual(project_id, share["project_id"])
@tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)
+ @base.skip_if_microversion_lt("2.42")
+ def test_list_shares_with_detail_with_count(self):
+ # list shares by name, at least one share is expected
+ params = {"with_count": 'true'}
+ shares = self.shares_v2_client.list_shares_with_detail(params)
+ self.assertGreater(shares["count"], 0)
+
+ @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)
def test_list_shares_public_with_detail(self):
public_share = self.create_share(
name='public_share',