summaryrefslogtreecommitdiff
path: root/test/e2e/images_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e/images_test.go')
-rw-r--r--test/e2e/images_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go
index ecc0f2415..e05281ac9 100644
--- a/test/e2e/images_test.go
+++ b/test/e2e/images_test.go
@@ -37,6 +37,28 @@ var _ = Describe("Podman images", func() {
Expect(session.LineInOuputStartsWith("docker.io/library/busybox")).To(BeTrue())
})
+ It("podman images with multiple tags", func() {
+ // tag "docker.io/library/alpine:latest" to "foo:{a,b,c}"
+ session := podmanTest.Podman([]string{"tag", ALPINE, "foo:a", "foo:b", "foo:c"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ // tag "foo:c" to "bar:{a,b}"
+ session = podmanTest.Podman([]string{"tag", "foo:c", "bar:a", "bar:b"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ // check all previous and the newly tagged images
+ session = podmanTest.Podman([]string{"images"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ session.LineInOutputContainsTag("docker.io/library/alpine", "latest")
+ session.LineInOutputContainsTag("docker.io/library/busybox", "glibc")
+ session.LineInOutputContainsTag("foo", "a")
+ session.LineInOutputContainsTag("foo", "b")
+ session.LineInOutputContainsTag("foo", "c")
+ session.LineInOutputContainsTag("bar", "a")
+ session.LineInOutputContainsTag("bar", "b")
+ })
+
It("podman images with digests", func() {
session := podmanTest.Podman([]string{"images", "--digests"})
session.WaitWithDefaultTimeout()