diff options
author | Divyansh Kamboj <kambojdivyansh2000@gmail.com> | 2019-05-20 21:15:47 +0530 |
---|---|---|
committer | Divyansh Kamboj <kambojdivyansh2000@gmail.com> | 2019-05-20 23:11:48 +0530 |
commit | c6f7066e772b2ee761665cbff027c3b1906fd171 (patch) | |
tree | 2c47d68239de69aa06d0e3c25a5303ef30f05547 /test | |
parent | 18a953918e1d15aded713f9802865807bd25a1e0 (diff) | |
download | podman-c6f7066e772b2ee761665cbff027c3b1906fd171.tar.gz podman-c6f7066e772b2ee761665cbff027c3b1906fd171.tar.bz2 podman-c6f7066e772b2ee761665cbff027c3b1906fd171.zip |
Minor fix filtering images by label
Added test to avoid future regressions
Fix #3163
Signed-off-by: Divyansh Kamboj <kambojdivyansh2000@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/images_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go index bec6e304b..23455163b 100644 --- a/test/e2e/images_test.go +++ b/test/e2e/images_test.go @@ -298,4 +298,17 @@ ENV foo=bar Expect(session2.ExitCode()).To(Equal(0)) Expect(len(session2.OutputToStringArray())).To(Equal(6)) }) + + It("podman images filter by label", func() { + SkipIfRemote() + dockerfile := `FROM docker.io/library/alpine:latest +LABEL version="1.0" +LABEL "com.example.vendor"="Example Vendor" +` + podmanTest.BuildImage(dockerfile, "test", "true") + session := podmanTest.Podman([]string{"images", "-f", "label=version=1.0"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(len(session.OutputToStringArray())).To(Equal(2)) + }) }) |