diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-11 10:35:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 10:35:54 -0400 |
commit | 86616317bc31c5a2890bd3cc8aec18c59ba2a257 (patch) | |
tree | b455edaacde28d5680f38ea2f4ca70b36152921e /test | |
parent | 1d01815c107c91f6cfe98446d334c94a97d11080 (diff) | |
parent | 784a13f57752caee545e2e22a8f35665befbd8bd (diff) | |
download | podman-86616317bc31c5a2890bd3cc8aec18c59ba2a257.tar.gz podman-86616317bc31c5a2890bd3cc8aec18c59ba2a257.tar.bz2 podman-86616317bc31c5a2890bd3cc8aec18c59ba2a257.zip |
Merge pull request #13701 from Luap99/ipam-none
network create: add support for ipam-driver none
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_networking_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/run_networking_test.go b/test/e2e/run_networking_test.go index faf4db753..696668e52 100644 --- a/test/e2e/run_networking_test.go +++ b/test/e2e/run_networking_test.go @@ -1119,4 +1119,17 @@ EXPOSE 2004-2005/tcp`, ALPINE) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) }) + + It("podman run with ipam none driver", func() { + net := "ipam" + stringid.GenerateNonCryptoID() + session := podmanTest.Podman([]string{"network", "create", "--ipam-driver=none", net}) + session.WaitWithDefaultTimeout() + defer podmanTest.removeNetwork(net) + Expect(session).Should(Exit(0)) + + session = podmanTest.Podman([]string{"run", "--network", net, ALPINE, "ip", "addr", "show", "eth0"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + Expect(session.OutputToStringArray()).To(HaveLen(4), "output should only show link local address") + }) }) |