Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 41236fe

Browse files
authored
Merge pull request #374 from thaJeztah/19.03_backport_add_tc_dynamic_ingress_network
[19.03 backport] Add TC to check dynamic subnet for ingress network Upstream-commit: 075a0201b96af7c023f22341a8876a50ecc1828b Component: engine
2 parents 04f81cc + a53e379 commit 41236fe

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

components/engine/integration/network/service_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,12 @@ func TestServiceWithDefaultAddressPoolInit(t *testing.T) {
417417
assert.NilError(t, err)
418418
t.Logf("%s: NetworkInspect: %+v", t.Name(), out)
419419
assert.Assert(t, len(out.IPAM.Config) > 0)
420+
assert.Equal(t, out.IPAM.Config[0].Subnet, "20.20.1.0/24")
421+
422+
// Also inspect ingress network and make sure its in the same subnet
423+
out, err = cli.NetworkInspect(ctx, "ingress", types.NetworkInspectOptions{Verbose: true})
424+
assert.NilError(t, err)
425+
assert.Assert(t, len(out.IPAM.Config) > 0)
420426
assert.Equal(t, out.IPAM.Config[0].Subnet, "20.20.0.0/24")
421427

422428
err = cli.ServiceRemove(ctx, serviceID)

components/engine/vendor.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ github.com/containerd/ttrpc 92c8520ef9f86600c650dd540266
128128
github.com/gogo/googleapis d31c731455cb061f42baff3bda55bad0118b126b # v1.2.0
129129

130130
# cluster
131-
github.com/docker/swarmkit bbe341867eae1615faf8a702ec05bfe986e73e06 # bump_v19.03 branch
131+
github.com/docker/swarmkit f35d9100f2c6ac810cc8d7de6e8f93dcc7a42d29 # bump_v19.03 branch
132132
github.com/gogo/protobuf ba06b47c162d49f2af050fb4c75bcbc86a159d5c # v1.2.1
133133
github.com/golang/protobuf aa810b61a9c79d51363740d207bb46cf8e620ed5 # v1.2.0
134134
github.com/cloudflare/cfssl 5d63dbd981b5c408effbb58c442d54761ff94fbd # 1.3.2

components/engine/vendor/github.com/docker/swarmkit/manager/manager.go

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)