summaryrefslogtreecommitdiff
path: root/test/e2e/pause_test.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-09-09 16:56:33 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-09-10 09:03:08 +0200
commit53dc99fa609b5a18458e27b99df546df9095b5d0 (patch)
tree41a6e3d56fef274a5b36f8a0612c4d9d0f59c2f5 /test/e2e/pause_test.go
parent63f6656f8fa79d7f6e01379d7ba0aa4ab3c03b37 (diff)
downloadpodman-53dc99fa609b5a18458e27b99df546df9095b5d0.tar.gz
podman-53dc99fa609b5a18458e27b99df546df9095b5d0.tar.bz2
podman-53dc99fa609b5a18458e27b99df546df9095b5d0.zip
stats: allow to read stats for paused containers
paused containers still a cgroup we can use to grab the stats. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/e2e/pause_test.go')
-rw-r--r--test/e2e/pause_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/pause_test.go b/test/e2e/pause_test.go
index ea7a96428..2e5e07de9 100644
--- a/test/e2e/pause_test.go
+++ b/test/e2e/pause_test.go
@@ -79,6 +79,11 @@ var _ = Describe("Podman pause", func() {
Expect(result).To(ExitWithError())
Expect(podmanTest.NumberOfContainersRunning()).To(Equal(0))
Expect(strings.ToLower(podmanTest.GetContainerStatus())).To(ContainSubstring(createdState))
+
+ // check we can read stats for a paused container
+ result = podmanTest.Podman([]string{"stats", "--no-stream", cid})
+ result.WaitWithDefaultTimeout()
+ Expect(result).To(ExitWithError())
})
It("podman pause a running container by id", func() {