summaryrefslogtreecommitdiff
path: root/test/e2e/common_test.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-11-30 11:52:10 -0600
committerbaude <bbaude@redhat.com>2020-11-30 16:10:01 -0600
commit7d43cc06dc24173e4f983d005d91e222d1e96c72 (patch)
tree3a04e9f99806d63507d06dfd8c445de268b5a217 /test/e2e/common_test.go
parentfc85ec942ee3273f5ad56381a0f6b9e78aea59bf (diff)
downloadpodman-7d43cc06dc24173e4f983d005d91e222d1e96c72.tar.gz
podman-7d43cc06dc24173e4f983d005d91e222d1e96c72.tar.bz2
podman-7d43cc06dc24173e4f983d005d91e222d1e96c72.zip
network connect disconnect on non-running containers
a container can connect and disconnet to networks even when not in a running state. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r--test/e2e/common_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go
index facafcb77..9bc2a757e 100644
--- a/test/e2e/common_test.go
+++ b/test/e2e/common_test.go
@@ -788,3 +788,9 @@ func generateNetworkConfig(p *PodmanTestIntegration) (string, string) {
return name, path
}
+
+func (p *PodmanTestIntegration) removeCNINetwork(name string) {
+ session := p.Podman([]string{"network", "rm", "-f", name})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(BeNumerically("<=", 1))
+}