diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-08-31 07:38:59 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-31 18:02:14 +0000 |
commit | a917f8fa2a0d9130d84bfda0c40bfe1af68d505c (patch) | |
tree | b2070d31027cd5d6fe914072a06e969133e7edcb /libpod/image/image_test.go | |
parent | 294c3f4cab3c5945e420a55263a7bece8a7030a1 (diff) | |
download | podman-a917f8fa2a0d9130d84bfda0c40bfe1af68d505c.tar.gz podman-a917f8fa2a0d9130d84bfda0c40bfe1af68d505c.tar.bz2 podman-a917f8fa2a0d9130d84bfda0c40bfe1af68d505c.zip |
We are mistakenly seeing repos as registries.
Currently `podman pull rhel7/rhel-tools` is failing because it
sees rhel7 as a registry. This change will verify that the returned
registry from the parser is actually a registry and not a repo,
if a repo it will return the correct content, and we will pull the image.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #1387
Approved by: mtrmac
Diffstat (limited to 'libpod/image/image_test.go')
-rw-r--r-- | libpod/image/image_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/image_test.go b/libpod/image/image_test.go index 0aa637dab..f187631b4 100644 --- a/libpod/image/image_test.go +++ b/libpod/image/image_test.go @@ -221,7 +221,7 @@ func TestNormalizeTag(t *testing.T) { {"example.com/busybox" + digestSuffix, "example.com/busybox" + digestSuffix + ":none"}, // Qualified name@digest; FIXME: The result is not even syntactically valid! {"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", "ns/busybox:latest"}, // Unqualified with a dot-less namespace FIXME: "ns" is treated as a registry + {"ns/busybox:latest", "localhost/ns/busybox:latest"}, // Unqualified with a dot-less namespace } { res, err := normalizeTag(c.input) if c.expected == "" { |