Skip to content

Commit 6a13542

Browse files
committed
Add unit test for extended ipv4 service IP range
1 parent df4f5c1 commit 6a13542

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/registry/core/service/ipallocator/allocator_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ func TestRangeSize(t *testing.T) {
224224
cidr: "192.168.1.0/24",
225225
addrs: 256,
226226
},
227+
{
228+
name: "supported large IPv4 cidr",
229+
cidr: "10.96.0.0/12",
230+
addrs: 1048576,
231+
},
227232
{
228233
name: "unsupported IPv4 cidr",
229234
cidr: "192.168.1.0/1",

0 commit comments

Comments
 (0)