diff --git a/manila_tempest_tests/tests/api/test_shares_actions.py b/manila_tempest_tests/tests/api/test_shares_actions.py index 779bfb68..987658da 100644 --- a/manila_tempest_tests/tests/api/test_shares_actions.py +++ b/manila_tempest_tests/tests/api/test_shares_actions.py @@ -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] diff --git a/releasenotes/notes/bug-1993283-ee8d329ae65b4f78.yaml b/releasenotes/notes/bug-1993283-ee8d329ae65b4f78.yaml new file mode 100644 index 00000000..3c5f7756 --- /dev/null +++ b/releasenotes/notes/bug-1993283-ee8d329ae65b4f78.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + `Bug #1993283 `_: + Fixed SharesActionsTest cases for API version >= 2.73 since a + metadata field was added in that version.