Use PATCHs instead of PUTs in CIDR allocator

This commit is contained in:
Shyam Jeedigunta
2017-11-23 16:50:32 +01:00
parent 028c4c9399
commit 19e56eb42d
4 changed files with 20 additions and 6 deletions

View File

@@ -333,6 +333,7 @@ func TestReleaseCIDRSuccess(t *testing.T) {
}(),
serviceCIDR: nil,
subNetMaskSize: 30,
allocatedCIDRs: []string{"127.123.234.4/30", "127.123.234.8/30", "127.123.234.12/30"},
expectedAllocatedCIDRFirstRound: "127.123.234.0/30",
cidrsToRelease: []string{"127.123.234.0/30"},
expectedAllocatedCIDRSecondRound: "127.123.234.0/30",