diff options
author | Mehul Arora <aroram18@mcmaster.ca> | 2021-06-26 16:47:49 +0530 |
---|---|---|
committer | Mehul Arora <aroram18@mcmaster.ca> | 2021-07-05 16:07:49 +0530 |
commit | 59abb77fc26bd93d1b8a33ad3baaf159d96a0691 (patch) | |
tree | f48498628a3179c7df4758570aaa9ae2b045a915 /test/e2e | |
parent | 955c1d2bfeac0c399bbc4d82fd7b72ed4cc868d3 (diff) | |
download | podman-59abb77fc26bd93d1b8a33ad3baaf159d96a0691.tar.gz podman-59abb77fc26bd93d1b8a33ad3baaf159d96a0691.tar.bz2 podman-59abb77fc26bd93d1b8a33ad3baaf159d96a0691.zip |
multiple image pull support
Signed-off-by: Mehul Arora <aroram18@mcmaster.ca>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/pull_test.go | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/e2e/pull_test.go b/test/e2e/pull_test.go index c60ad9487..048f19b1e 100644 --- a/test/e2e/pull_test.go +++ b/test/e2e/pull_test.go @@ -35,6 +35,23 @@ var _ = Describe("Podman pull", func() { }) + It("podman pull multiple images with/without tag/digest", func() { + session := podmanTest.Podman([]string{"pull", "busybox:musl", "alpine", "alpine:latest", "quay.io/libpod/cirros", "quay.io/libpod/testdigest_v2s2@sha256:755f4d90b3716e2bf57060d249e2cd61c9ac089b1233465c5c2cb2d7ee550fdb"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + + session = podmanTest.Podman([]string{"pull", "busybox:latest", "docker.io/library/ibetthisdoesnotexistfr:random", "alpine"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(125)) + expectedError := "Error initializing source docker://ibetthisdoesnotexistfr:random" + found, _ := session.ErrorGrepString(expectedError) + Expect(found).To(Equal(true)) + + session = podmanTest.Podman([]string{"rmi", "busybox", "alpine", "testdigest_v2s2", "quay.io/libpod/cirros"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + }) + It("podman pull from docker a not existing image", func() { session := podmanTest.Podman([]string{"pull", "ibetthisdoesntexistthere:foo"}) session.WaitWithDefaultTimeout() @@ -385,7 +402,6 @@ var _ = Describe("Podman pull", func() { session := podmanTest.Podman([]string{"pull", "--all-tags", "k8s.gcr.io/pause"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - Expect(session.LineInOutputStartsWith("Pulled Images:")).To(BeTrue()) session = podmanTest.Podman([]string{"images"}) session.WaitWithDefaultTimeout() |