diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-02-16 04:24:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 04:24:56 -0500 |
commit | 98962a28f5d89fa7545688bbfca635744279ff7a (patch) | |
tree | 813b7403f52ea42ca0fefed5b19d0410eadc9df0 /test/e2e | |
parent | 60b0acb7dc6b5bbe05a9556d80e33217b10dde9b (diff) | |
parent | 6a8d29eeadd1a216204fe3bcb2fab75ffbb472d9 (diff) | |
download | podman-98962a28f5d89fa7545688bbfca635744279ff7a.tar.gz podman-98962a28f5d89fa7545688bbfca635744279ff7a.tar.bz2 podman-98962a28f5d89fa7545688bbfca635744279ff7a.zip |
Merge pull request #13239 from baude/e2esincebefore
Fix images since/after tests
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/images_test.go | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go index 0a4d9b134..6a534c9c8 100644 --- a/test/e2e/images_test.go +++ b/test/e2e/images_test.go @@ -187,23 +187,27 @@ WORKDIR /test }) It("podman images filter since image", func() { - dockerfile := `FROM quay.io/libpod/alpine:latest + dockerfile := `FROM scratch ` - podmanTest.BuildImage(dockerfile, "foobar.com/before:latest", "false") - result := podmanTest.Podman([]string{"images", "-q", "-f", "since=quay.io/libpod/alpine:latest"}) + podmanTest.BuildImage(dockerfile, "foobar.com/one:latest", "false") + podmanTest.BuildImage(dockerfile, "foobar.com/two:latest", "false") + podmanTest.BuildImage(dockerfile, "foobar.com/three:latest", "false") + result := podmanTest.PodmanNoCache([]string{"images", "-q", "-f", "since=foobar.com/one:latest"}) result.WaitWithDefaultTimeout() Expect(result).Should(Exit(0)) - Expect(result.OutputToStringArray()).To(HaveLen(9)) + Expect(result.OutputToStringArray()).To(HaveLen(2)) }) It("podman image list filter after image", func() { - dockerfile := `FROM quay.io/libpod/alpine:latest + dockerfile := `FROM scratch ` - podmanTest.BuildImage(dockerfile, "foobar.com/before:latest", "false") - result := podmanTest.Podman([]string{"image", "list", "-q", "-f", "after=quay.io/libpod/alpine:latest"}) + podmanTest.BuildImage(dockerfile, "foobar.com/one:latest", "false") + podmanTest.BuildImage(dockerfile, "foobar.com/two:latest", "false") + podmanTest.BuildImage(dockerfile, "foobar.com/three:latest", "false") + result := podmanTest.Podman([]string{"image", "list", "-q", "-f", "after=foobar.com/one:latest"}) result.WaitWithDefaultTimeout() Expect(result).Should(Exit(0)) - Expect(result.OutputToStringArray()).Should(HaveLen(9), "list filter output: %q", result.OutputToString()) + Expect(result.OutputToStringArray()).Should(HaveLen(2), "list filter output: %q", result.OutputToString()) }) It("podman images filter dangling", func() { |