diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-10 10:53:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 10:53:47 -0400 |
commit | 0b6c56b80d7642e33f89b3f24cde53c7817e64d9 (patch) | |
tree | 41d6c41f0373883c284a087974bcda4355d11a83 /test/e2e/pause_test.go | |
parent | cf4a7b8d37c48bc9ccf8e5a2fdc9b005113fd847 (diff) | |
parent | 50688da29b4a37006d0a7fafc25aca1a6447c7d9 (diff) | |
download | podman-0b6c56b80d7642e33f89b3f24cde53c7817e64d9.tar.gz podman-0b6c56b80d7642e33f89b3f24cde53c7817e64d9.tar.bz2 podman-0b6c56b80d7642e33f89b3f24cde53c7817e64d9.zip |
Merge pull request #11506 from giuseppe/fix-stats-restart-container
stats: detect container restart and allow paused containers
Diffstat (limited to 'test/e2e/pause_test.go')
-rw-r--r-- | test/e2e/pause_test.go | 5 |
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() { |