mirror of
https://github.com/containers/podman.git
synced 2025-07-30 11:52:47 +08:00
Use imageParts.normalizedReference in normalizeTag
This is another step to using reference values instead of strings here. CHANGES BEHAVIOR: docker.io/busybox is now normalized to docker.io/library/busybox. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
@ -268,6 +268,7 @@ func TestNormalizeTag(t *testing.T) {
|
||||
{"example.com/busybox:notlatest" + digestSuffix, "example.com/busybox:notlatest" + digestSuffix}, // Qualified name:tag@digest
|
||||
{"busybox:latest", "localhost/busybox:latest"}, // Unqualified name-only
|
||||
{"ns/busybox:latest", "localhost/ns/busybox:latest"}, // Unqualified with a dot-less namespace
|
||||
{"docker.io/busybox:latest", "docker.io/library/busybox:latest"}, // docker.io without /library/
|
||||
} {
|
||||
res, err := normalizeTag(c.input)
|
||||
if c.expected == "" {
|
||||
|
Reference in New Issue
Block a user