Add testcase for share metadata

Add get metadata item for share metadata testcase

Change-Id: Ib3b3148a99812c69476e51cf0609c08fc9c4a9ef
diff --git a/manila_tempest_tests/services/share/json/shares_client.py b/manila_tempest_tests/services/share/json/shares_client.py
index f7b3694..0370f15 100644
--- a/manila_tempest_tests/services/share/json/shares_client.py
+++ b/manila_tempest_tests/services/share/json/shares_client.py
@@ -425,6 +425,11 @@
         self.expected_success(200, resp.status)
         return self._parse_resp(body)
 
+    def get_metadata_item(self, share_id, key):
+        resp, body = self.get("shares/%s/metadata/%s" % (share_id, key))
+        self.expected_success(200, resp.status)
+        return self._parse_resp(body)
+
 ###############
 
     def create_security_service(self, ss_type="ldap", **kwargs):
diff --git a/manila_tempest_tests/tests/api/test_metadata.py b/manila_tempest_tests/tests/api/test_metadata.py
index 00e5e5d..a99aa15 100644
--- a/manila_tempest_tests/tests/api/test_metadata.py
+++ b/manila_tempest_tests/tests/api/test_metadata.py
@@ -67,6 +67,11 @@
         # verify metadata
         self.assertEqual(md, get_md)
 
+        # verify metadata items
+        for key in md:
+            get_value = self.shares_client.get_metadata_item(share["id"], key)
+            self.assertEqual(md[key], get_value[key])
+
         # delete metadata
         for key in md.keys():
             self.shares_client.delete_metadata(share["id"], key)