Change RESTError to JsonRESTError for ImageNotFoundException, update test to expect ImageNotFoundException

This commit is contained in:
Dick Marinus 2020-03-08 20:56:21 +01:00
commit 28af7412f8
2 changed files with 3 additions and 3 deletions

View file

@ -538,7 +538,7 @@ def test_describe_image_that_doesnt_exist():
repositoryName="test_repository",
imageIds=[{"imageTag": "testtag"}],
registryId="123",
).should.throw(ClientError, error_msg1)
).should.throw(client.exceptions.ImageNotFoundException, error_msg1)
error_msg2 = re.compile(
r".*The repository with name 'repo-that-doesnt-exist' does not exist in the registry with id '123'.*",