summaryrefslogtreecommitdiff
path: root/test/e2e/rmi_test.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-07-08 09:51:56 -0500
committerbaude <bbaude@redhat.com>2019-07-08 12:31:31 -0500
commitc187da23c49876f23a5b2fc0f4d94bedd44482e6 (patch)
treed55f693adcc13fc287b8fb3e4eb0a0c96ed07f74 /test/e2e/rmi_test.go
parent3fdf1a2c447ac3b26ae51e266ca4a781da30a5c1 (diff)
downloadpodman-c187da23c49876f23a5b2fc0f4d94bedd44482e6.tar.gz
podman-c187da23c49876f23a5b2fc0f4d94bedd44482e6.tar.bz2
podman-c187da23c49876f23a5b2fc0f4d94bedd44482e6.zip
speed up rootless tests
when running integrations tests as rootless, several tests still unnecessarily pull images which is costly in terms of time. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/rmi_test.go')
-rw-r--r--test/e2e/rmi_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/rmi_test.go b/test/e2e/rmi_test.go
index 1687bf764..1b0329a83 100644
--- a/test/e2e/rmi_test.go
+++ b/test/e2e/rmi_test.go
@@ -55,7 +55,7 @@ var _ = Describe("Podman rmi", func() {
})
It("podman rmi all images", func() {
- podmanTest.PullImages([]string{nginx})
+ podmanTest.RestoreArtifact(nginx)
session := podmanTest.PodmanNoCache([]string{"rmi", "-a"})
session.WaitWithDefaultTimeout()
images := podmanTest.PodmanNoCache([]string{"images"})
@@ -66,7 +66,7 @@ var _ = Describe("Podman rmi", func() {
})
It("podman rmi all images forcibly with short options", func() {
- podmanTest.PullImages([]string{nginx})
+ podmanTest.RestoreArtifact(nginx)
session := podmanTest.PodmanNoCache([]string{"rmi", "-fa"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))