Esempio n. 1
0
 def test_client_httpnotfound_converts_to_imagenotfound(self):
     in_exc = glanceclient.exc.HTTPNotFound('123')
     out_exc = glance._translate_image_exception('123', in_exc)
     self.assertIsInstance(out_exc, exception.ImageNotFound)
Esempio n. 2
0
 def test_client_httpnotfound_converts_to_imagenotfound(self):
     in_exc = glanceclient.exc.HTTPNotFound('123')
     out_exc = glance._translate_image_exception('123', in_exc)
     self.assertIsInstance(out_exc, exception.ImageNotFound)
Esempio n. 3
0
 def test_client_httpforbidden_converts_to_imagenotauthed(self):
     in_exc = glanceclient.exc.HTTPForbidden('123')
     out_exc = glance._translate_image_exception('123', in_exc)
     self.assertIsInstance(out_exc, exception.ImageNotAuthorized)
Esempio n. 4
0
 def test_client_httpforbidden_converts_to_imagenotauthed(self):
     in_exc = glanceclient.exc.HTTPForbidden('123')
     out_exc = glance._translate_image_exception('123', in_exc)
     self.assertIsInstance(out_exc, exception.ImageNotAuthorized)