From 6a1354252de2286dd191007bc708f8a86d86456a Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Sun, 22 Dec 2019 22:32:42 -0500 Subject: [PATCH] Add unit test for extended ipv4 service IP range --- pkg/registry/core/service/ipallocator/allocator_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/registry/core/service/ipallocator/allocator_test.go b/pkg/registry/core/service/ipallocator/allocator_test.go index e821a6a1016..86527154c77 100644 --- a/pkg/registry/core/service/ipallocator/allocator_test.go +++ b/pkg/registry/core/service/ipallocator/allocator_test.go @@ -224,6 +224,11 @@ func TestRangeSize(t *testing.T) { cidr: "192.168.1.0/24", addrs: 256, }, + { + name: "supported large IPv4 cidr", + cidr: "10.96.0.0/12", + addrs: 1048576, + }, { name: "unsupported IPv4 cidr", cidr: "192.168.1.0/1",