summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnders F Björklund <anders.f.bjorklund@gmail.com>2020-11-26 17:48:17 +0100
committerAnders F Björklund <anders.f.bjorklund@gmail.com>2020-12-01 22:33:16 +0100
commitde2b15f4d5a8cd3bf9006d0f3ecdfa75b316f495 (patch)
tree5c123c268c140fa9408c4eb5c7a889a0c33bf8d2 /test
parent7f1be76b5c388efe34cb658fb8eebb2bcec2a004 (diff)
downloadpodman-de2b15f4d5a8cd3bf9006d0f3ecdfa75b316f495.tar.gz
podman-de2b15f4d5a8cd3bf9006d0f3ecdfa75b316f495.tar.bz2
podman-de2b15f4d5a8cd3bf9006d0f3ecdfa75b316f495.zip
Add integration test for the bridge options
Thanks Luap99 for doing the implementation Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/network_create_test.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/e2e/network_create_test.go b/test/e2e/network_create_test.go
index 043046c33..1afd7cec4 100644
--- a/test/e2e/network_create_test.go
+++ b/test/e2e/network_create_test.go
@@ -329,4 +329,30 @@ 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`))
+ })
+
})