From 53dc99fa609b5a18458e27b99df546df9095b5d0 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 9 Sep 2021 16:56:33 +0200 Subject: 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 --- test/e2e/pause_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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() { -- cgit v1.2.3-54-g00ecf