summaryrefslogtreecommitdiff
path: root/test/e2e/volume_ls_test.go
diff options
context:
space:
mode:
authorJakub Guzik <jakubmguzik@gmail.com>2021-07-22 00:01:07 +0200
committerJakub Guzik <jakubmguzik@gmail.com>2021-07-22 00:01:07 +0200
commit2d8e837a9b351536fa45da8f80de5df118db6f1b (patch)
tree6cb8799100e2c412bf8d2f3bf8f86e29da8d2a1c /test/e2e/volume_ls_test.go
parent20c9f74c77683730455df4fb5e7722a192b78a92 (diff)
downloadpodman-2d8e837a9b351536fa45da8f80de5df118db6f1b.tar.gz
podman-2d8e837a9b351536fa45da8f80de5df118db6f1b.tar.bz2
podman-2d8e837a9b351536fa45da8f80de5df118db6f1b.zip
Add until filter to volume ls filters list
As a conclusion of a discussion in #10861, until filter is added by this commit to volume ls filters. Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
Diffstat (limited to 'test/e2e/volume_ls_test.go')
-rw-r--r--test/e2e/volume_ls_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/e2e/volume_ls_test.go b/test/e2e/volume_ls_test.go
index ff3551ad9..0dd1a2b7c 100644
--- a/test/e2e/volume_ls_test.go
+++ b/test/e2e/volume_ls_test.go
@@ -101,6 +101,22 @@ var _ = Describe("Podman volume ls", func() {
Expect(len(session.OutputToStringArray())).To(Equal(0))
})
+ It("podman ls volume with --filter until flag", func() {
+ session := podmanTest.Podman([]string{"volume", "create"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ session = podmanTest.Podman([]string{"volume", "ls", "--filter", "until=5000000000"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+ Expect(len(session.OutputToStringArray())).To(Equal(2))
+
+ session = podmanTest.Podman([]string{"volume", "ls", "--filter", "until=50000"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+ Expect(len(session.OutputToStringArray())).To(Equal(0))
+ })
+
It("podman volume ls with --filter dangling", func() {
volName1 := "volume1"
session := podmanTest.Podman([]string{"volume", "create", volName1})