ecr: Fix "imageDigest" value in ecr.list_images() response (#3436)

This commit is contained in:
Peter Lithammer 2020-11-05 15:10:23 +01:00 committed by GitHub
commit b7cf2d4478
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -318,6 +318,9 @@ def test_list_images():
type(response["imageIds"]).should.be(list)
len(response["imageIds"]).should.be(3)
for image in response["imageIds"]:
image["imageDigest"].should.contain("sha")
image_tags = ["latest", "v1", "v2"]
set(
[
@ -331,6 +334,7 @@ def test_list_images():
type(response["imageIds"]).should.be(list)
len(response["imageIds"]).should.be(1)
response["imageIds"][0]["imageTag"].should.equal("oldest")
response["imageIds"][0]["imageDigest"].should.contain("sha")
@mock_ecr