From 15539c1c4bdb10095bb4d30c6283795dac657600 Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 27 Oct 2020 09:14:53 -0500 Subject: 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 --- test/e2e/prune_test.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'test/e2e/prune_test.go') 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))) }) }) -- cgit v1.2.3-54-g00ecf