Merge "Correct GlanceStoreException to provide valid message - Glance"
This commit is contained in:
commit
f8d812054f
|
@ -172,7 +172,7 @@ class FakeStoreAPI(object):
|
|||
raise store.UnknownScheme(scheme=scheme)
|
||||
return self.data[location]
|
||||
except KeyError:
|
||||
raise store.NotFound()
|
||||
raise store.NotFound(image=location)
|
||||
|
||||
def get_size_from_backend(self, location, context=None):
|
||||
return self.get_from_backend(location, context=context)[1]
|
||||
|
|
|
@ -477,7 +477,7 @@ class TestImageDataSerializer(test_utils.BaseTestCase):
|
|||
"""
|
||||
with mock.patch.object(glance.api.policy.ImageProxy,
|
||||
'get_data') as mock_get_data:
|
||||
mock_get_data.side_effect = glance_store.NotFound()
|
||||
mock_get_data.side_effect = glance_store.NotFound(image="image")
|
||||
|
||||
request = wsgi.Request.blank('/')
|
||||
response = webob.Response()
|
||||
|
|
Loading…
Reference in New Issue