summaryrefslogtreecommitdiff
path: root/test/e2e/run_networking_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-03 06:51:23 -0500
committerGitHub <noreply@github.com>2021-02-03 06:51:23 -0500
commit8f51d325af7a2af76fb4e6664779bda6eb76d12c (patch)
tree01b6408440c8dfe4d21ebe211b8e5856a49c5c0b /test/e2e/run_networking_test.go
parentec0041ebfff5b6a040a61baa3ffbc2348fe65a0e (diff)
parent0959196807bb85b1941343a6b984bfd7a08cfd06 (diff)
downloadpodman-8f51d325af7a2af76fb4e6664779bda6eb76d12c.tar.gz
podman-8f51d325af7a2af76fb4e6664779bda6eb76d12c.tar.bz2
podman-8f51d325af7a2af76fb4e6664779bda6eb76d12c.zip
Merge pull request #9174 from bitstrings/master
Make slirp MTU configurable (network_cmd_options)
Diffstat (limited to 'test/e2e/run_networking_test.go')
-rw-r--r--test/e2e/run_networking_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_networking_test.go b/test/e2e/run_networking_test.go
index ebea2132a..676f24e5d 100644
--- a/test/e2e/run_networking_test.go
+++ b/test/e2e/run_networking_test.go
@@ -376,6 +376,13 @@ var _ = Describe("Podman run networking", func() {
Expect(session.ExitCode()).To(Equal(0))
})
+ It("podman run slirp4netns network with mtu", func() {
+ session := podmanTest.Podman([]string{"run", "--network", "slirp4netns:mtu=9000", ALPINE, "ip", "addr"})
+ session.Wait(30)
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.OutputToString()).To(ContainSubstring("mtu 9000"))
+ })
+
It("podman run slirp4netns network with different cidr", func() {
slirp4netnsHelp := SystemExec("slirp4netns", []string{"--help"})
Expect(slirp4netnsHelp.ExitCode()).To(Equal(0))