diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-02-15 14:45:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-15 14:45:03 +0100 |
commit | 40c6d5c98c04870e814ff99acda03ad5c6c23cdc (patch) | |
tree | 6ff9ae1209fce012607cfa43039139ba36f8d1e2 /test/e2e | |
parent | 5a0a1144c5341534c56e27cada481682fb4c810f (diff) | |
parent | 1543a01be874af690b7ade9b226d9d62e43ac036 (diff) | |
download | podman-40c6d5c98c04870e814ff99acda03ad5c6c23cdc.tar.gz podman-40c6d5c98c04870e814ff99acda03ad5c6c23cdc.tar.bz2 podman-40c6d5c98c04870e814ff99acda03ad5c6c23cdc.zip |
Merge pull request #2188 from TomSweeneyRedHat/dev/tsweeney/pullall
Add --all-tags to pull command
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/pull_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/e2e/pull_test.go b/test/e2e/pull_test.go index bfae15152..faad8202e 100644 --- a/test/e2e/pull_test.go +++ b/test/e2e/pull_test.go @@ -163,4 +163,20 @@ var _ = Describe("Podman pull", func() { Expect(pull.OutputToString()).To(ContainSubstring(shortImageId)) }) + + It("podman pull check all tags", func() { + session := podmanTest.Podman([]string{"pull", "--all-tags", "alpine"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.LineInOuputStartsWith("Pulled Images:")).To(BeTrue()) + + session = podmanTest.Podman([]string{"images"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(len(session.OutputToStringArray())).To(BeNumerically(">", 4)) + + rmi := podmanTest.Podman([]string{"rmi", "-a", "-f"}) + rmi.WaitWithDefaultTimeout() + Expect(rmi.ExitCode()).To(Equal(0)) + }) }) |