diff --git a/manila_tempest_tests/config.py b/manila_tempest_tests/config.py index ab76f8f4..e33dba8b 100644 --- a/manila_tempest_tests/config.py +++ b/manila_tempest_tests/config.py @@ -30,7 +30,7 @@ ShareGroup = [ 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 cf179bf3..7d28d837 100644 --- a/manila_tempest_tests/tests/api/test_shares_actions.py +++ b/manila_tempest_tests/tests/api/test_shares_actions.py @@ -389,6 +389,14 @@ class SharesActionsTest(base.BaseSharesTest): for share in shares: 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(