summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-06-02 04:26:04 -0400
committerGitHub <noreply@github.com>2022-06-02 04:26:04 -0400
commita208bfaa521ada1a3aa66f609de3f8434c80f896 (patch)
tree0567f7b7b55419b08d5b56bc7187c99b7074cc08 /test
parent2958aee08389aa5e89794f5e5b4f30ac3328d071 (diff)
parent16e8b2f32ecc0dd071a9303159d5ff8d86e7279f (diff)
downloadpodman-a208bfaa521ada1a3aa66f609de3f8434c80f896.tar.gz
podman-a208bfaa521ada1a3aa66f609de3f8434c80f896.tar.bz2
podman-a208bfaa521ada1a3aa66f609de3f8434c80f896.zip
Merge pull request #14421 from Luap99/stats
podman stats: work with network connect/disconnect
Diffstat (limited to 'test')
-rw-r--r--test/e2e/network_connect_disconnect_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/e2e/network_connect_disconnect_test.go b/test/e2e/network_connect_disconnect_test.go
index a0716c84d..019bb4617 100644
--- a/test/e2e/network_connect_disconnect_test.go
+++ b/test/e2e/network_connect_disconnect_test.go
@@ -114,6 +114,11 @@ var _ = Describe("Podman network connect and disconnect", func() {
exec3.WaitWithDefaultTimeout()
Expect(exec3).Should(Exit(0))
Expect(strings.Contains(exec3.OutputToString(), ns)).To(BeFalse())
+
+ // make sure stats still works https://github.com/containers/podman/issues/13824
+ stats := podmanTest.Podman([]string{"stats", "test", "--no-stream"})
+ stats.WaitWithDefaultTimeout()
+ Expect(stats).Should(Exit(0))
})
It("bad network name in connect should result in error", func() {
@@ -237,6 +242,11 @@ var _ = Describe("Podman network connect and disconnect", func() {
Expect(exec3).Should(Exit(0))
Expect(strings.Contains(exec3.OutputToString(), ns)).To(BeTrue())
+ // make sure stats works https://github.com/containers/podman/issues/13824
+ stats := podmanTest.Podman([]string{"stats", "test", "--no-stream"})
+ stats.WaitWithDefaultTimeout()
+ Expect(stats).Should(Exit(0))
+
// make sure no logrus errors are shown https://github.com/containers/podman/issues/9602
rm := podmanTest.Podman([]string{"rm", "--time=0", "-f", "test"})
rm.WaitWithDefaultTimeout()