diff options
author | baude <bbaude@redhat.com> | 2020-10-27 09:14:53 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2020-11-16 08:15:44 -0600 |
commit | 15539c1c4bdb10095bb4d30c6283795dac657600 (patch) | |
tree | 6a0090d6ab89eb7665067ce32194f45b9dfe38da /test/e2e/prune_test.go | |
parent | 392075631a284617b7e37b8bdfb3157f5918cdec (diff) | |
download | podman-15539c1c4bdb10095bb4d30c6283795dac657600.tar.gz podman-15539c1c4bdb10095bb4d30c6283795dac657600.tar.bz2 podman-15539c1c4bdb10095bb4d30c6283795dac657600.zip |
use lookaside storage for remote tests
in an effort to speed up the remote testing, we should be using
lookaside storage to avoid pull images as well as importing multiple
images into the RW store.
one test was removed and added into system test by Ed in #8325
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/prune_test.go')
-rw-r--r-- | test/e2e/prune_test.go | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/test/e2e/prune_test.go b/test/e2e/prune_test.go index 969f96165..c02ed5a50 100644 --- a/test/e2e/prune_test.go +++ b/test/e2e/prune_test.go @@ -135,28 +135,29 @@ var _ = Describe("Podman prune", func() { }) It("podman image prune unused images", func() { - podmanTest.RestoreAllArtifacts() - prune := podmanTest.PodmanNoCache([]string{"image", "prune", "-af"}) + podmanTest.AddImageToRWStore(ALPINE) + podmanTest.AddImageToRWStore(BB) + prune := podmanTest.Podman([]string{"image", "prune", "-af"}) prune.WaitWithDefaultTimeout() Expect(prune.ExitCode()).To(Equal(0)) - images := podmanTest.PodmanNoCache([]string{"images", "-aq"}) + images := podmanTest.Podman([]string{"images", "-aq"}) images.WaitWithDefaultTimeout() // all images are unused, so they all should be deleted! - Expect(len(images.OutputToStringArray())).To(Equal(0)) + Expect(len(images.OutputToStringArray())).To(Equal(len(CACHE_IMAGES))) }) It("podman system image prune unused images", func() { - podmanTest.RestoreAllArtifacts() + podmanTest.AddImageToRWStore(ALPINE) podmanTest.BuildImage(pruneImage, "alpine_bash:latest", "true") - prune := podmanTest.PodmanNoCache([]string{"system", "prune", "-a", "--force"}) + prune := podmanTest.Podman([]string{"system", "prune", "-a", "--force"}) prune.WaitWithDefaultTimeout() Expect(prune.ExitCode()).To(Equal(0)) - images := podmanTest.PodmanNoCache([]string{"images", "-aq"}) + images := podmanTest.Podman([]string{"images", "-aq"}) images.WaitWithDefaultTimeout() // all images are unused, so they all should be deleted! - Expect(len(images.OutputToStringArray())).To(Equal(0)) + Expect(len(images.OutputToStringArray())).To(Equal(len(CACHE_IMAGES))) }) It("podman system prune pods", func() { @@ -343,9 +344,9 @@ var _ = Describe("Podman prune", func() { Expect(session.ExitCode()).To(Equal(0)) Expect(len(session.OutputToStringArray())).To(Equal(2)) - images := podmanTest.PodmanNoCache([]string{"images", "-aq"}) + images := podmanTest.Podman([]string{"images", "-aq"}) images.WaitWithDefaultTimeout() // all images are unused, so they all should be deleted! - Expect(len(images.OutputToStringArray())).To(Equal(0)) + Expect(len(images.OutputToStringArray())).To(Equal(len(CACHE_IMAGES))) }) }) |