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:
Alexander Deiter
2022年10月18日 14:07:21 +03:00
parent e344e37d62
commit 75dbca626e

View File

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

View 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
openstack/manila-tempest-plugin
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.

The note is not visible to the blocked user.