mirror of
https://github.com/containers/podman.git
synced 2025-08-02 09:12:36 +08:00
images: distinguish between tags and digests
Generate an image's RepoDigests list using all applicable digests, and refrain from outputting a digest in the tag column of the "images" output. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
@ -247,6 +247,19 @@ func TestImage_RepoDigests(t *testing.T) {
|
||||
}
|
||||
|
||||
assert.Equal(t, test.expected, actual)
|
||||
|
||||
image = &Image{
|
||||
image: &storage.Image{
|
||||
Names: test.names,
|
||||
Digests: []digest.Digest{dgst},
|
||||
},
|
||||
}
|
||||
actual, err = image.RepoDigests()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
assert.Equal(t, test.expected, actual)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user