summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-18 22:03:13 +0100
committerGitHub <noreply@github.com>2021-11-18 22:03:13 +0100
commit3242931c6267274aa696291cc693998884447389 (patch)
treea9f62de4be50d1863d30fa686eb46e7d6baf5304 /test/e2e
parent82a050a58f2ef2cf940c2ef49e1f8c4b17ab8beb (diff)
parentc050f05ccff6416ccd41d271f0051b395cbe5a1f (diff)
downloadpodman-3242931c6267274aa696291cc693998884447389.tar.gz
podman-3242931c6267274aa696291cc693998884447389.tar.bz2
podman-3242931c6267274aa696291cc693998884447389.zip
Merge pull request #12295 from flouthoc/filter-label-pattern
filters: add basic pattern matching for label keys i.e `--filter label=<pattern>`
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/volume_ls_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/volume_ls_test.go b/test/e2e/volume_ls_test.go
index 0dd1a2b7c..6c4b22fa5 100644
--- a/test/e2e/volume_ls_test.go
+++ b/test/e2e/volume_ls_test.go
@@ -45,6 +45,17 @@ var _ = Describe("Podman volume ls", func() {
Expect(len(session.OutputToStringArray())).To(Equal(2))
})
+ It("podman ls volume filter with a key pattern", func() {
+ session := podmanTest.Podman([]string{"volume", "create", "--label", "helloworld=world", "myvol2"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ session = podmanTest.Podman([]string{"volume", "ls", "--filter", "label=hello*"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+ Expect(len(session.OutputToStringArray())).To(Equal(2))
+ })
+
It("podman ls volume with JSON format", func() {
session := podmanTest.Podman([]string{"volume", "create", "myvol"})
session.WaitWithDefaultTimeout()