summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorHironori Shiina <shiina.hironori@jp.fujitsu.com>2021-07-09 17:52:45 -0400
committerHironori Shiina <shiina.hironori@jp.fujitsu.com>2021-07-09 18:08:23 -0400
commit6bdb990c9e4d9d881854cca3bd74be37bf660adb (patch)
treeb9fa5e12db25d3cc458d2b273a944c93f6d503fe /test/e2e
parent24a5eeafc54ef7b1c04bfa8efe78fddd3f7e4014 (diff)
downloadpodman-6bdb990c9e4d9d881854cca3bd74be37bf660adb.tar.gz
podman-6bdb990c9e4d9d881854cca3bd74be37bf660adb.tar.bz2
podman-6bdb990c9e4d9d881854cca3bd74be37bf660adb.zip
Restore headers of optional information in 'podman pod ps'
When optional information such as container IDs and names in pods, the headers are not displayed. This fix restored the headers. Documentation of this subcommand is also updated. Signed-off-by: Hironori Shiina <shiina.hironori@jp.fujitsu.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/pod_ps_test.go8
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$`))
+ })
+
})