Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECR describe_image should return list of imageTags #1685

Closed
sthuber90 opened this issue Jun 13, 2018 · 0 comments
Closed

ECR describe_image should return list of imageTags #1685

sthuber90 opened this issue Jun 13, 2018 · 0 comments

Comments

@sthuber90
Copy link
Contributor

Actual

Creating images put_image with the same image_manifest and different tags results in different images being created and returned through describe_image:

{
 "imageDetails": [
     {
         "imageSizeInBytes": 55600,
         "imageDigest": "sha256:abcdefg",
         "imageTags": [
             "v1"
         ],
         "registryId": "1234567890",
         "repositoryName": "test",
         "imagePushedAt": 1505819275.0
     },
     {
         "imageSizeInBytes": 55600,
         "imageDigest": "sha256:abcdefg",
         "imageTags": [
             "latest"
         ],
         "registryId": "1234567890",
         "repositoryName": "test",
         "imagePushedAt": 1508933240.0
     }
 ]
}

Expected

Creating and updating images with put_image with the same image_manifest should have the same image_digest and should be returned with a list of the corresponding tags through describe_image i.e.:

{
 "imageDetails": [
     {
         "imageSizeInBytes": 55600,
         "imageDigest": "sha256:abcdefg",
         "imageTags": [
             "v1",
             "latest"
         ],
         "registryId": "1234567890",
         "repositoryName": "test",
         "imagePushedAt": 1505819275.0
     }
 ]
}
sthuber90 pushed a commit to sthuber90/moto that referenced this issue Jun 13, 2018
sthuber90 pushed a commit to sthuber90/moto that referenced this issue Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant