summaryrefslogtreecommitdiff
path: root/libpod/image/image_test.go
diff options
context:
space:
mode:
authorhaircommander <pehunt@redhat.com>2018-07-13 17:45:55 -0400
committerhaircommander <pehunt@redhat.com>2018-07-20 11:46:11 -0400
commit0fecfeee6398e2db6b7b3fd257645a6ea9aab542 (patch)
tree0c8bc2bc742ae2001f992c777ab0ac4d46947553 /libpod/image/image_test.go
parentba1871dac033783ab0329c9b3c9113a34a90992f (diff)
downloadpodman-0fecfeee6398e2db6b7b3fd257645a6ea9aab542.tar.gz
podman-0fecfeee6398e2db6b7b3fd257645a6ea9aab542.tar.bz2
podman-0fecfeee6398e2db6b7b3fd257645a6ea9aab542.zip
Podman load/tag/save prepend localhost when no repository is present
Instead of having docker.io/library as its repository. Test included. Signed-off-by: haircommander <pehunt@redhat.com>
Diffstat (limited to 'libpod/image/image_test.go')
-rw-r--r--libpod/image/image_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/image/image_test.go b/libpod/image/image_test.go
index 71beed495..04877dbe5 100644
--- a/libpod/image/image_test.go
+++ b/libpod/image/image_test.go
@@ -170,12 +170,12 @@ func TestImage_MatchRepoTag(t *testing.T) {
// foo should resolve to foo:latest
repoTag, err := newImage.MatchRepoTag("foo")
assert.NoError(t, err)
- assert.Equal(t, "foo:latest", repoTag)
+ assert.Equal(t, "localhost/foo:latest", repoTag)
// foo:bar should resolve to foo:bar
repoTag, err = newImage.MatchRepoTag("foo:bar")
assert.NoError(t, err)
- assert.Equal(t, "foo:bar", repoTag)
+ assert.Equal(t, "localhost/foo:bar", repoTag)
// Shutdown the runtime and remove the temporary storage
cleanup(workdir, ir)
}