summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-03-04 11:43:59 +0100
committerPaul Holzinger <paul.holzinger@web.de>2021-03-04 11:43:59 +0100
commitaa0a57f095b569f8c80e3622b48305209747533a (patch)
tree745a50ef5ee7836cf50a0a826f9a131026621443 /test
parent87e20560ac885c541784af1341098ce8e1e7a940 (diff)
downloadpodman-aa0a57f095b569f8c80e3622b48305209747533a.tar.gz
podman-aa0a57f095b569f8c80e3622b48305209747533a.tar.bz2
podman-aa0a57f095b569f8c80e3622b48305209747533a.zip
Fix cni teardown errors
Make sure to pass the cni interface descriptions to cni teardowns. Otherwise cni cannot find the correct cache files because the interface name might not match the networks. This can only happen when network disconnect was used. Fixes #9602 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/network_connect_disconnect_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/network_connect_disconnect_test.go b/test/e2e/network_connect_disconnect_test.go
index eb8ad7181..e9a7b421f 100644
--- a/test/e2e/network_connect_disconnect_test.go
+++ b/test/e2e/network_connect_disconnect_test.go
@@ -193,6 +193,13 @@ var _ = Describe("Podman network connect and disconnect", func() {
exec = podmanTest.Podman([]string{"exec", "-it", "test", "ip", "addr", "show", "eth1"})
exec.WaitWithDefaultTimeout()
Expect(exec.ExitCode()).To(BeZero())
+
+ // make sure no logrus errors are shown https://github.com/containers/podman/issues/9602
+ rm := podmanTest.Podman([]string{"rm", "-f", "test"})
+ rm.WaitWithDefaultTimeout()
+ Expect(rm.ExitCode()).To(BeZero())
+ Expect(rm.ErrorToString()).To(Equal(""))
+
})
It("podman network connect when not running", func() {