Fix the tests for registry v2 changes.

This commit is contained in:
Jake Moshenko 2015-08-24 11:58:43 -04:00
parent 0dc0f23c5e
commit b998eca8e5
3 changed files with 14 additions and 4 deletions

View file

@ -139,8 +139,8 @@ def get_repository_images(namespace_name, repository_name):
def get_image_by_id(namespace_name, repository_name, docker_image_id):
image = get_repo_image_extended(namespace_name, repository_name, docker_image_id)
if not image:
raise DataModelException('Unable to find image \'%s\' for repo \'%s/%s\'' %
(docker_image_id, namespace_name, repository_name))
raise InvalidImageException('Unable to find image \'%s\' for repo \'%s/%s\'' %
(docker_image_id, namespace_name, repository_name))
return image