summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-16 10:25:41 -0500
committerGitHub <noreply@github.com>2022-02-16 10:25:41 -0500
commitf335cbf11bc2e9e7ee8ae0002dedb8543564ff8c (patch)
tree240a81573a12628b97933fcf1f29fa0311900932
parent98962a28f5d89fa7545688bbfca635744279ff7a (diff)
parentb62816578e38385167abdc401f04e776c54cce56 (diff)
downloadpodman-f335cbf11bc2e9e7ee8ae0002dedb8543564ff8c.tar.gz
podman-f335cbf11bc2e9e7ee8ae0002dedb8543564ff8c.tar.bz2
podman-f335cbf11bc2e9e7ee8ae0002dedb8543564ff8c.zip
Merge pull request #13244 from vrothberg/merge-filter-tests
e2e: merge after/since image-filter tests
-rw-r--r--test/e2e/images_test.go14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go
index 6a534c9c8..d34c911ad 100644
--- a/test/e2e/images_test.go
+++ b/test/e2e/images_test.go
@@ -186,25 +186,21 @@ WORKDIR /test
Expect(result.OutputToString()).To(Equal("/test"))
})
- It("podman images filter since image", func() {
+ It("podman images filter since/after image", func() {
dockerfile := `FROM scratch
`
podmanTest.BuildImage(dockerfile, "foobar.com/one:latest", "false")
podmanTest.BuildImage(dockerfile, "foobar.com/two:latest", "false")
podmanTest.BuildImage(dockerfile, "foobar.com/three:latest", "false")
+
+ // `since` filter
result := podmanTest.PodmanNoCache([]string{"images", "-q", "-f", "since=foobar.com/one:latest"})
result.WaitWithDefaultTimeout()
Expect(result).Should(Exit(0))
Expect(result.OutputToStringArray()).To(HaveLen(2))
- })
- It("podman image list filter after image", func() {
- dockerfile := `FROM scratch
-`
- 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"})
+ // `after` filter
+ 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(2), "list filter output: %q", result.OutputToString())