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
This commit is contained in:
Victoria Martinez de la Cruz 2017-12-11 16:10:36 -03:00
parent 2aea7c344f
commit 6dd03d9b45
2 changed files with 9 additions and 1 deletions

View File

@ -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",

View File

@ -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(