Add a metadata field shown on API >= 2.73
Fixed SharesActionsTest cases for API version >= 2.73 since a metadata field was added in that version. Closes-bug: #1993283 Signed-off-by: Alexander Deiter <adeiter@infinidat.com> Change-Id: Ib285d9c740558d1ff3e24acb1ccc3de7e1ad562f
This commit is contained in:
2 changed files with 10 additions and 0 deletions
@@ -469,6 +469,8 @@ class SharesActionsTest(base.BaseSharesMixedTest):
"description", "id", "share_size", "size"]
if version and utils.is_microversion_ge(version, '2.17'):
expected_keys.extend(["user_id", "project_id"])
if version and utils.is_microversion_ge(version, '2.73'):
expected_keys.append("metadata")
actual_keys = snapshot.keys()
# strict key check
@@ -547,6 +549,8 @@ class SharesActionsTest(base.BaseSharesMixedTest):
"share_size", "size"]
if version and utils.is_microversion_ge(version, '2.17'):
expected_keys.extend(["user_id", "project_id"])
if version and utils.is_microversion_ge(version, '2.73'):
expected_keys.append("metadata")
# strict key check
[self.assertEqual(set(expected_keys), set(s.keys())) for s in snaps]
6
releasenotes/notes/bug-1993283-ee8d329ae65b4f78.yaml
Normal file
6
releasenotes/notes/bug-1993283-ee8d329ae65b4f78.yaml
Normal file
@@ -0,0 +1,6 @@
---
fixes:
- |
`Bug #1993283 <https://bugs.launchpad.net/manila/+bug/1993283>`_:
Fixed SharesActionsTest cases for API version >= 2.73 since a
metadata field was added in that version.
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.