aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-02-15 10:33:18 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-15 17:18:08 +0000
commit409ed259c6b3ea9122c697e9e20b4b1572f485d1 (patch)
tree61c2c2107799eb542beb9f294796510bf1803578 /test
parentce7a0171d156709bc8bbf2ac1138b8022bb08054 (diff)
downloadpodman-409ed259c6b3ea9122c697e9e20b4b1572f485d1.tar.gz
podman-409ed259c6b3ea9122c697e9e20b4b1572f485d1.tar.bz2
podman-409ed259c6b3ea9122c697e9e20b4b1572f485d1.zip
Return imageid from podman pull
When using podman to pull an image, print the image id after the image is pulled. Resolves issue #329 Signed-off-by: baude <bbaude@redhat.com> Closes: #342 Approved by: rhatdan
Diffstat (limited to 'test')
-rw-r--r--test/e2e/pull_test.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/e2e/pull_test.go b/test/e2e/pull_test.go
index e24d8a5a7..25e33240e 100644
--- a/test/e2e/pull_test.go
+++ b/test/e2e/pull_test.go
@@ -5,6 +5,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
+ "strings"
)
var _ = Describe("Podman pull", func() {
@@ -138,4 +139,22 @@ var _ = Describe("Podman pull", func() {
clean := podmanTest.SystemExec("rm", []string{"-fr", "/tmp/podmantestdir"})
clean.WaitWithDefaultTimeout()
})
+
+ It("podman pull from local directory", func() {
+ podmanTest.RestoreArtifact(ALPINE)
+ setup := podmanTest.Podman([]string{"images", ALPINE, "-q", "--no-trunc"})
+ setup.WaitWithDefaultTimeout()
+ Expect(setup.ExitCode()).To(Equal(0))
+ shortImageId := strings.Split(setup.OutputToString(), ":")[1]
+
+ rmi := podmanTest.Podman([]string{"rmi", ALPINE})
+ rmi.WaitWithDefaultTimeout()
+ Expect(rmi.ExitCode()).To(Equal(0))
+
+ pull := podmanTest.Podman([]string{"pull", "-q", ALPINE})
+ pull.WaitWithDefaultTimeout()
+ Expect(pull.ExitCode()).To(Equal(0))
+
+ Expect(pull.OutputToString()).To(ContainSubstring(shortImageId))
+ })
})