diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-07-12 10:57:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 10:57:56 -0400 |
commit | fe0bb28e68fc8b0870301956482ac7e93ac49fda (patch) | |
tree | ace5084ea75b4d94555d62e892fc85544c9f8906 /test | |
parent | 788c2d136b91f1d714e4665ecd41ea452c72eba0 (diff) | |
parent | 6bdb990c9e4d9d881854cca3bd74be37bf660adb (diff) | |
download | podman-fe0bb28e68fc8b0870301956482ac7e93ac49fda.tar.gz podman-fe0bb28e68fc8b0870301956482ac7e93ac49fda.tar.bz2 podman-fe0bb28e68fc8b0870301956482ac7e93ac49fda.zip |
Merge pull request #10896 from hshiina/pod-ps
Restore headers of optional information in 'podman pod ps'
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/pod_ps_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/pod_ps_test.go b/test/e2e/pod_ps_test.go index c5c0827bc..28477d886 100644 --- a/test/e2e/pod_ps_test.go +++ b/test/e2e/pod_ps_test.go @@ -370,4 +370,12 @@ var _ = Describe("Podman ps", func() { Expect(session.ExitCode()).To(Equal(0)) Expect(session.OutputToString()).To(ContainSubstring("value1")) }) + + It("podman pod ps headers", func() { + session := podmanTest.Podman([]string{"pod", "ps", "--ctr-ids", "--ctr-names", "--ctr-status", "--ns"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(MatchRegexp(`^POD ID\s+NAME\s+STATUS\s+CREATED\s+INFRA ID\s+IDS\s+NAMES\s+STATUS\s+CGROUP\s+NAMESPACES$`)) + }) + }) |