aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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))
+ })
})