Commit Graph

2 Commits

Author SHA1 Message Date
Valentin Rothberg 1360dbce52 libimage: import: fix tags
When importing, first create the image and tag it afterwards.  This also
makes sure that an imported image *without* a tag is correctly listed as
"<none>".  Previously, such images were tagged as
"docker.io/library/sha256:$ID" (inherited from older Podman code).

Context: containers/podman/issues/10854
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-07-06 14:42:50 +02:00
Valentin Rothberg e43f58b1b0 libimage: add import test
Add a unit test exercising image import.  It is not extensive but will
do the work of catching regressions.  More tests to increase coverage
can be added later.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-05-14 15:21:46 +02:00