mirror of
https://github.com/containers/podman.git
synced 2025-06-20 17:13:43 +08:00
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>
This commit is contained in:
@ -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})
|
||||
|
Reference in New Issue
Block a user