diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/tag_test.go | 14 |
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)) + }) }) |