summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-16 22:30:45 +0000
committerGitHub <noreply@github.com>2020-12-16 22:30:45 +0000
commit915ae6d9bfa39515d7280f29b5d7d072753cc788 (patch)
treebc3b2295bf6f6e0f45230d5d5d37dc1077b47ddb /test
parente75dc3d536a9f8f457dfc35482ff61efc80cbb09 (diff)
parentedf0e918e32f4f109329881310b798f3b2c7defb (diff)
downloadpodman-915ae6d9bfa39515d7280f29b5d7d072753cc788.tar.gz
podman-915ae6d9bfa39515d7280f29b5d7d072753cc788.tar.bz2
podman-915ae6d9bfa39515d7280f29b5d7d072753cc788.zip
Merge pull request #8756 from Luap99/fix-8748
Always add the default gateway to the cni config file
Diffstat (limited to 'test')
-rw-r--r--test/e2e/network_create_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/e2e/network_create_test.go b/test/e2e/network_create_test.go
index 21b3074fc..7e9a18ab2 100644
--- a/test/e2e/network_create_test.go
+++ b/test/e2e/network_create_test.go
@@ -106,6 +106,7 @@ var _ = Describe("Podman network create", func() {
Expect(bridgePlugin.IPAM.Routes[0].Dest).To(Equal("0.0.0.0/0"))
Expect(bridgePlugin.IsGW).To(BeTrue())
Expect(bridgePlugin.IPMasq).To(BeTrue())
+ Expect(bridgePlugin.IPAM.Ranges[0][0].Gateway).ToNot(BeEmpty())
Expect(portMapPlugin.Capabilities["portMappings"]).To(BeTrue())
})
@@ -153,6 +154,8 @@ var _ = Describe("Podman network create", func() {
// JSON the bridge info
bridgePlugin, err := genericPluginsToBridge(result["plugins"], "bridge")
Expect(err).To(BeNil())
+ // check that gateway is added to config
+ Expect(bridgePlugin.IPAM.Ranges[0][0].Gateway).To(Equal("10.11.12.1"))
// Once a container executes a new network, the nic will be created. We should clean those up
// best we can