[Negative] Get share from other project
The test verifies that user cannot find out if a share
exists in another project.
Related-Bug: #1914363
Change-Id: I82eba46b72ff656f00c9ecc94d47589d8292bf5f
diff --git a/manila_tempest_tests/tests/api/test_shares_actions_negative.py b/manila_tempest_tests/tests/api/test_shares_actions_negative.py
index 5195d14..8152130 100644
--- a/manila_tempest_tests/tests/api/test_shares_actions_negative.py
+++ b/manila_tempest_tests/tests/api/test_shares_actions_negative.py
@@ -268,3 +268,11 @@
params=filters)
self.assertEqual(0, len(shares))
+
+ @decorators.skip_because(bug='1914363')
+ @decorators.idempotent_id('e8f857f1-ec32-4f81-9e09-26065891dc93')
+ @tc.attr(base.TAG_NEGATIVE, base.TAG_API_WITH_BACKEND)
+ def test_get_share_from_other_project(self):
+ self.assertRaises(lib_exc.NotFound,
+ self.alt_shares_v2_client.get_share,
+ self.share['id'])