aboutsummaryrefslogtreecommitdiff
path: root/libpod/image/parts_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-08-31 07:38:59 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-31 18:02:14 +0000
commita917f8fa2a0d9130d84bfda0c40bfe1af68d505c (patch)
treeb2070d31027cd5d6fe914072a06e969133e7edcb /libpod/image/parts_test.go
parent294c3f4cab3c5945e420a55263a7bece8a7030a1 (diff)
downloadpodman-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/parts_test.go')
-rw-r--r--libpod/image/parts_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/libpod/image/parts_test.go b/libpod/image/parts_test.go
index eba938cc2..518538f0b 100644
--- a/libpod/image/parts_test.go
+++ b/libpod/image/parts_test.go
@@ -27,12 +27,10 @@ func TestDecompose(t *testing.T) {
},
{ // Unqualified single-name input
"busybox", "docker://", "", "busybox", "latest", false, false,
- // FIXME? The [empty]/busybox syntax is surprising.
- "/busybox:latest", "docker:///busybox:latest",
+ "busybox:latest", "docker://busybox:latest",
},
{ // Unqualified namespaced input
- // FIXME: .registry == "ns" !!
- "ns/busybox", "docker://", "ns", "busybox", "latest", false, true,
+ "ns/busybox", "docker://", "", "ns/busybox", "latest", false, false,
"ns/busybox:latest", "docker://ns/busybox:latest",
},
{ // name:tag