Remove share metadata test
Removes test_try_delete_metadata_with_unsupport_format_key
for metadata api refactoring introduced in [1].
This test relates to this bug [2], but fails in the code refactoring
mentioned above. Now that the router handles metadata endpoints, the
stripping of '.html' or '.xml' in the key is unecessary.
For more dicussion see [3].
[1] https://review.opendev.org/c/openstack/manila/+/824648
[2] https://bugs.launchpad.net/manila/+bug/1774353
[3]
https://meetings.opendev.org/meetings/manila/2022/manila.2022-02-03-15.00.log.html#l-77
Change-Id: I3e7d3a49cec6af347368757f30d4478841dabeaa
diff --git a/manila_tempest_tests/tests/api/test_metadata_negative.py b/manila_tempest_tests/tests/api/test_metadata_negative.py
index a34d1a6..93a3628 100644
--- a/manila_tempest_tests/tests/api/test_metadata_negative.py
+++ b/manila_tempest_tests/tests/api/test_metadata_negative.py
@@ -113,20 +113,3 @@
self.assertRaises(lib_exc.NotFound,
self.shares_client.delete_metadata,
self.share["id"], "wrong_key")
-
- @decorators.idempotent_id('c6c70d55-7ed0-439f-ae34-f19af55361f6')
- @tc.attr(base.TAG_NEGATIVE, base.TAG_API_WITH_BACKEND)
- @ddt.data(("foo.xml", False), ("foo.json", False),
- ("foo.xml", True), ("foo.json", True))
- @ddt.unpack
- def test_try_delete_metadata_with_unsupport_format_key(
- self, key, is_v2_client):
- md = {key: u"value.test"}
-
- client = self.shares_v2_client if is_v2_client else self.shares_client
- # set metadata
- client.set_metadata(self.share["id"], md)
-
- self.assertRaises(lib_exc.NotFound,
- client.delete_metadata,
- self.share["id"], key)