diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-04 13:22:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 13:22:57 -0800 |
commit | 348e58b59aadbfd873c6c4cd7d2ed4877f43d054 (patch) | |
tree | d3c954d02a4aea05a7a9cd305abaef54273ff287 /test/e2e | |
parent | fac8318cb001404c13db7063cf17de768cd4ca3e (diff) | |
parent | ee5b749e653f4c78298d1e290d5a1ae03edc3c05 (diff) | |
download | podman-348e58b59aadbfd873c6c4cd7d2ed4877f43d054.tar.gz podman-348e58b59aadbfd873c6c4cd7d2ed4877f43d054.tar.bz2 podman-348e58b59aadbfd873c6c4cd7d2ed4877f43d054.zip |
Merge pull request #5075 from mheon/filter_forces_all
Force --all when --filter is passed to podman ps
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/ps_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go index 12bfdfe41..fccc5c93b 100644 --- a/test/e2e/ps_test.go +++ b/test/e2e/ps_test.go @@ -227,6 +227,22 @@ var _ = Describe("Podman ps", func() { Expect(output[0]).To(Equal(fullCid)) }) + It("podman ps filter by exited does not need all", func() { + ctr := podmanTest.Podman([]string{"run", "-t", "-i", ALPINE, "ls", "/"}) + ctr.WaitWithDefaultTimeout() + Expect(ctr.ExitCode()).To(Equal(0)) + + psAll := podmanTest.Podman([]string{"ps", "-aq", "--no-trunc"}) + psAll.WaitWithDefaultTimeout() + Expect(psAll.ExitCode()).To(Equal(0)) + + psFilter := podmanTest.Podman([]string{"ps", "--no-trunc", "--quiet", "--filter", "status=exited"}) + psFilter.WaitWithDefaultTimeout() + Expect(psFilter.ExitCode()).To(Equal(0)) + + Expect(psAll.OutputToString()).To(Equal(psFilter.OutputToString())) + }) + It("podman ps mutually exclusive flags", func() { session := podmanTest.Podman([]string{"ps", "-aqs"}) session.WaitWithDefaultTimeout() |