Merge "Correct GlanceStoreException to provide valid message - Glance"

This commit is contained in:
Jenkins 2014-12-02 01:54:42 +00:00 committed by Gerrit Code Review
commit f8d812054f
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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()