diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-12 07:01:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 07:01:10 -0400 |
commit | 212011f166d6f56421fcc5260def999e71156d32 (patch) | |
tree | 662725e76b8bc04a5ede4f8a3d40b375add1d334 /test/e2e | |
parent | dce30de594c6206659104a1208f4012a32a82bdc (diff) | |
parent | 66798e993a1d3c111f15a85242cac1427c39f53e (diff) | |
download | podman-212011f166d6f56421fcc5260def999e71156d32.tar.gz podman-212011f166d6f56421fcc5260def999e71156d32.tar.bz2 podman-212011f166d6f56421fcc5260def999e71156d32.zip |
Merge pull request #7836 from QiWang19/search-tags
Search repository tags using --list-tags
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/search_test.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/e2e/search_test.go b/test/e2e/search_test.go index 043da9059..0cf005529 100644 --- a/test/e2e/search_test.go +++ b/test/e2e/search_test.go @@ -423,4 +423,24 @@ registries = ['{{.Host}}:{{.Port}}']` Expect(search.ExitCode()).To(Equal(0)) Expect(len(search.OutputToStringArray()) > 1).To(BeTrue()) }) + + It("podman search repository tags", func() { + search := podmanTest.Podman([]string{"search", "--list-tags", "--limit", "30", "docker.io/library/alpine"}) + search.WaitWithDefaultTimeout() + Expect(search.ExitCode()).To(Equal(0)) + Expect(len(search.OutputToStringArray())).To(Equal(31)) + + search = podmanTest.Podman([]string{"search", "--list-tags", "docker.io/library/alpine"}) + search.WaitWithDefaultTimeout() + Expect(search.ExitCode()).To(Equal(0)) + Expect(len(search.OutputToStringArray()) > 2).To(BeTrue()) + + search = podmanTest.Podman([]string{"search", "--filter=is-official", "--list-tags", "docker.io/library/alpine"}) + search.WaitWithDefaultTimeout() + Expect(search.ExitCode()).To(Not(Equal(0))) + + search = podmanTest.Podman([]string{"search", "--list-tags", "docker.io/library/"}) + search.WaitWithDefaultTimeout() + Expect(len(search.OutputToStringArray()) == 0).To(BeTrue()) + }) }) |