summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-12-10 16:21:09 +0100
committerPaul Holzinger <pholzing@redhat.com>2021-12-10 16:23:40 +0100
commitbc191ca7d3899981fda172b5ddcf71ec247f9d20 (patch)
tree033e7b247f2999f40d99600649007165a489aa83 /test/e2e
parentf80a7fda745a96a895184b92077a6356c305c2bb (diff)
downloadpodman-bc191ca7d3899981fda172b5ddcf71ec247f9d20.tar.gz
podman-bc191ca7d3899981fda172b5ddcf71ec247f9d20.tar.bz2
podman-bc191ca7d3899981fda172b5ddcf71ec247f9d20.zip
fix e2e test missing network cleanup
I noticed that this test will fail its flake rerun because the network was not removed and it tried to create a network with the same name. Also network disconnect works rootless now. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/network_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/e2e/network_test.go b/test/e2e/network_test.go
index 92f962abc..424561943 100644
--- a/test/e2e/network_test.go
+++ b/test/e2e/network_test.go
@@ -355,13 +355,12 @@ var _ = Describe("Podman network", func() {
})
It("podman network remove after disconnect when container initially created with the network", func() {
- SkipIfRootless("disconnect works only in non rootless container")
-
container := "test"
- network := "foo"
+ network := "foo" + stringid.GenerateNonCryptoID()
session := podmanTest.Podman([]string{"network", "create", network})
session.WaitWithDefaultTimeout()
+ defer podmanTest.removeCNINetwork(network)
Expect(session).Should(Exit(0))
session = podmanTest.Podman([]string{"run", "--name", container, "--network", network, "-d", ALPINE, "top"})