diff options
author | baude <bbaude@redhat.com> | 2020-11-30 11:52:10 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2020-11-30 16:10:01 -0600 |
commit | 7d43cc06dc24173e4f983d005d91e222d1e96c72 (patch) | |
tree | 3a04e9f99806d63507d06dfd8c445de268b5a217 /test/e2e/common_test.go | |
parent | fc85ec942ee3273f5ad56381a0f6b9e78aea59bf (diff) | |
download | podman-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.go | 6 |
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)) +} |