Removed an invalid test
Added nonexistant tests for list images operations
Change-Id: I10a8432e9a9b7e6d142693834b3c7f01b865c625
diff --git a/tempest/tests/test_list_images.py b/tempest/tests/test_list_images.py
index d78cf02..363678b 100644
--- a/tempest/tests/test_list_images.py
+++ b/tempest/tests/test_list_images.py
@@ -223,3 +223,13 @@
params = {'changes-since': self.image1['created']}
resp, images = self.client.list_images_with_detail(params)
self.assertTrue(any([i for i in images if i['id'] == self.image1_id]))
+
+ @attr(type='negative')
+ def test_get_nonexistant_image(self):
+ """Negative test: GET on non existant image should fail"""
+ try:
+ resp, image = self.client.get_image(999)
+ except:
+ pass
+ else:
+ self.fail('GET on non existant image should fail')