Merge pull request #409 from squeed/fix-integ-tests
integration: fix ip address collision in integration tests
This commit is contained in:
commit
d5efdfe1f6
@ -149,12 +149,12 @@ var _ = Describe("Basic PTP using cnitool", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
Measure("limits traffic only on the restricted bandwith veth device", func(b Benchmarker) {
|
Measure("limits traffic only on the restricted bandwith veth device", func(b Benchmarker) {
|
||||||
ipRegexp := regexp.MustCompile("10\\.11\\.2\\.\\d{1,3}")
|
ipRegexp := regexp.MustCompile("10\\.1[12]\\.2\\.\\d{1,3}")
|
||||||
|
|
||||||
By(fmt.Sprintf("adding %s to %s\n\n", "chained-bridge-bandwidth", contNS1.ShortName()))
|
By(fmt.Sprintf("adding %s to %s\n\n", "chained-bridge-bandwidth", contNS1.ShortName()))
|
||||||
chainedBridgeBandwidthEnv.runInNS(hostNS, cnitoolBin, "add", "network-chain-test", contNS1.LongName())
|
chainedBridgeBandwidthEnv.runInNS(hostNS, cnitoolBin, "add", "network-chain-test", contNS1.LongName())
|
||||||
chainedBridgeIP := ipRegexp.FindString(chainedBridgeBandwidthEnv.runInNS(contNS1, "ip", "addr"))
|
chainedBridgeIP := ipRegexp.FindString(chainedBridgeBandwidthEnv.runInNS(contNS1, "ip", "addr"))
|
||||||
Expect(chainedBridgeIP).To(ContainSubstring("10.11.2."))
|
Expect(chainedBridgeIP).To(ContainSubstring("10.12.2."))
|
||||||
|
|
||||||
By(fmt.Sprintf("adding %s to %s\n\n", "basic-bridge", contNS2.ShortName()))
|
By(fmt.Sprintf("adding %s to %s\n\n", "basic-bridge", contNS2.ShortName()))
|
||||||
basicBridgeEnv.runInNS(hostNS, cnitoolBin, "add", "network-chain-test", contNS2.LongName())
|
basicBridgeEnv.runInNS(hostNS, cnitoolBin, "add", "network-chain-test", contNS2.LongName())
|
||||||
|
@ -4,12 +4,12 @@
|
|||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
"type": "bridge",
|
"type": "bridge",
|
||||||
"bridge": "test-bridge-0",
|
"bridge": "test-bridge-1",
|
||||||
"isDefaultGateway": true,
|
"isDefaultGateway": true,
|
||||||
"ipam": {
|
"ipam": {
|
||||||
"type": "host-local",
|
"type": "host-local",
|
||||||
"subnet": "10.11.2.0/24",
|
"subnet": "10.12.2.0/24",
|
||||||
"dataDir": "/tmp/foo"
|
"dataDir": "/tmp/bar"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user