summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-02-24 19:52:55 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-26 18:28:54 +0000
commitb351b12e273cde1f6973420b5aa911c92c51db58 (patch)
tree2d196c47ebefa05c99c821af5c1446241dafeba0 /test
parent5e7979f016d6cf1a6a050810af47c75ea16a2c9e (diff)
downloadpodman-b351b12e273cde1f6973420b5aa911c92c51db58.tar.gz
podman-b351b12e273cde1f6973420b5aa911c92c51db58.tar.bz2
podman-b351b12e273cde1f6973420b5aa911c92c51db58.zip
Tagging an image alias by shortname
When trying to tag an alias (tag) of an image using only the shortname and no tag, we were unable to find the image in storage. This corrects that issue and adds an integration test to protect against regression. I also updated the man page per the filed issue. While writing the integration test, I discovered that inspect could also not find a tagged image without its :tag. Resolves Issue #385 Resolves Issue #384 Signed-off-by: baude <bbaude@redhat.com> Closes: #398 Approved by: mheon
Diffstat (limited to 'test')
-rw-r--r--test/e2e/tag_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/tag_test.go b/test/e2e/tag_test.go
index 7f14c7eb4..5b578ee07 100644
--- a/test/e2e/tag_test.go
+++ b/test/e2e/tag_test.go
@@ -66,4 +66,18 @@ var _ = Describe("Podman tag", func() {
Expect(StringInSlice("docker.io/library/alpine:latest", inspectData[0].RepoTags)).To(BeTrue())
Expect(StringInSlice("foobar:new", inspectData[0].RepoTags)).To(BeTrue())
})
+
+ It("podman tag shortname image no tag", func() {
+ session := podmanTest.Podman([]string{"tag", ALPINE, "foobar"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ results := podmanTest.Podman([]string{"tag", "foobar", "barfoo"})
+ results.WaitWithDefaultTimeout()
+ Expect(results.ExitCode()).To(Equal(0))
+
+ verify := podmanTest.Podman([]string{"inspect", "barfoo"})
+ verify.WaitWithDefaultTimeout()
+ Expect(verify.ExitCode()).To(Equal(0))
+ })
})