Merge pull request #110457 from aojea/class_e_range

unit tests for Class E IP addresses
This commit is contained in:
Kubernetes Prow Robot 2022-06-08 10:10:22 -07:00 committed by GitHub
commit cfda5bc1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,11 @@ func TestClusterServiceIPRange(t *testing.T) {
expectErrors: false,
options: makeOptionsWithCIDRs("10.0.0.0/16", ""),
},
{
name: "valid primary, class E range",
expectErrors: false,
options: makeOptionsWithCIDRs("244.0.0.0/16", ""),
},
{
name: "valid v4-v6 dual stack",
expectErrors: false,

View File

@ -19893,6 +19893,7 @@ func TestValidateNonSpecialIP(t *testing.T) {
ip string
}{
{"ipv4", "10.1.2.3"},
{"ipv4 class E", "244.1.2.3"},
{"ipv6", "2000::1"},
} {
t.Run(tc.desc, func(t *testing.T) {