diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-02 01:01:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 01:01:09 +0100 |
commit | c585012db395e259b13157a685d7f9596c0b9f7d (patch) | |
tree | 260a3d2e2b20af7f91cad8443278f53288b0c42d /test/e2e | |
parent | b2cd6e0402bcd425130e397d79588dc406eccf53 (diff) | |
parent | db70e91bde90514ace510f66a1069207217a8d69 (diff) | |
download | podman-c585012db395e259b13157a685d7f9596c0b9f7d.tar.gz podman-c585012db395e259b13157a685d7f9596c0b9f7d.tar.bz2 podman-c585012db395e259b13157a685d7f9596c0b9f7d.zip |
Merge pull request #8457 from afbjorklund/bridge-mtu
Add podman network create flag for bridge mtu
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/network_create_test.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/e2e/network_create_test.go b/test/e2e/network_create_test.go index 043046c33..21b3074fc 100644 --- a/test/e2e/network_create_test.go +++ b/test/e2e/network_create_test.go @@ -329,4 +329,37 @@ var _ = Describe("Podman network create", func() { Expect(nc).To(ExitWithError()) }) + It("podman network create with mtu option", func() { + net := "mtu-test" + nc := podmanTest.Podman([]string{"network", "create", "--opt", "mtu=9000", net}) + nc.WaitWithDefaultTimeout() + Expect(nc.ExitCode()).To(BeZero()) + defer podmanTest.removeCNINetwork(net) + + nc = podmanTest.Podman([]string{"network", "inspect", net}) + nc.WaitWithDefaultTimeout() + Expect(nc.ExitCode()).To(BeZero()) + Expect(nc.OutputToString()).To(ContainSubstring(`"mtu": 9000,`)) + }) + + It("podman network create with vlan option", func() { + net := "vlan-test" + nc := podmanTest.Podman([]string{"network", "create", "--opt", "vlan=9", net}) + nc.WaitWithDefaultTimeout() + Expect(nc.ExitCode()).To(BeZero()) + defer podmanTest.removeCNINetwork(net) + + nc = podmanTest.Podman([]string{"network", "inspect", net}) + nc.WaitWithDefaultTimeout() + Expect(nc.ExitCode()).To(BeZero()) + Expect(nc.OutputToString()).To(ContainSubstring(`"vlan": 9`)) + }) + + It("podman network create with invalid option", func() { + net := "invalid-test" + nc := podmanTest.Podman([]string{"network", "create", "--opt", "foo=bar", net}) + nc.WaitWithDefaultTimeout() + Expect(nc).To(ExitWithError()) + }) + }) |