aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-23 14:43:30 -0400
committerGitHub <noreply@github.com>2021-06-23 14:43:30 -0400
commit2b850ef055885bf3482f405e804fb02aef2e9895 (patch)
tree557e61615adc963b6deb5622a2847eade38fd290 /test
parente50e0dad9055673ef344f756e91387d9bd0c4d90 (diff)
parentf26fa5392110c2b59cb17d4f1013cf6bb4ecd873 (diff)
downloadpodman-2b850ef055885bf3482f405e804fb02aef2e9895.tar.gz
podman-2b850ef055885bf3482f405e804fb02aef2e9895.tar.bz2
podman-2b850ef055885bf3482f405e804fb02aef2e9895.zip
Merge pull request #10696 from cdoern/libpodStats
Podman Stats additional features
Diffstat (limited to 'test')
-rw-r--r--test/e2e/stats_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/stats_test.go b/test/e2e/stats_test.go
index 2218d72b5..7ab3dabc9 100644
--- a/test/e2e/stats_test.go
+++ b/test/e2e/stats_test.go
@@ -83,6 +83,17 @@ var _ = Describe("Podman stats", func() {
Expect(session.ExitCode()).To(Equal(0))
})
+ It("podman stats only output CPU data", func() {
+ session := podmanTest.RunTopContainer("")
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ session = podmanTest.Podman([]string{"stats", "--all", "--no-stream", "--format", "\"{{.ID}} {{.UpTime}} {{.AVGCPU}}\""})
+ session.WaitWithDefaultTimeout()
+ Expect(session.LineInOutputContains("UpTime")).To(BeTrue())
+ Expect(session.LineInOutputContains("AVGCPU")).To(BeTrue())
+ Expect(session.ExitCode()).To(Equal(0))
+ })
+
It("podman stats with json output", func() {
var found bool
session := podmanTest.RunTopContainer("")