@@ -801,7 +801,7 @@ func TestValidateNginxProxy(t *testing.T) {
801
801
TrustedAddresses : []ngfAPIv1alpha2.RewriteClientIPAddress {
802
802
{
803
803
Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType ,
804
- Value : "2001:db8:a0b:12f0::1/32 " ,
804
+ Value : "2001:db8:a0b:12f0::1/128 " ,
805
805
},
806
806
{
807
807
Type : ngfAPIv1alpha2 .RewriteClientIPIPAddressType ,
@@ -925,7 +925,7 @@ func TestValidateRewriteClientIP(t *testing.T) {
925
925
TrustedAddresses : []ngfAPIv1alpha2.RewriteClientIPAddress {
926
926
{
927
927
Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType ,
928
- Value : "2001:db8:a0b:12f0::1/32 " ,
928
+ Value : "2001:db8:a0b:12f0::1/128 " ,
929
929
},
930
930
{
931
931
Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType ,
@@ -1048,27 +1048,27 @@ func TestValidateRewriteClientIP(t *testing.T) {
1048
1048
RewriteClientIP : & ngfAPIv1alpha2.RewriteClientIP {
1049
1049
Mode : helpers .GetPointer (ngfAPIv1alpha2 .RewriteClientIPModeProxyProtocol ),
1050
1050
TrustedAddresses : []ngfAPIv1alpha2.RewriteClientIPAddress {
1051
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1052
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1053
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1054
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1055
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1056
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1057
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1058
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1059
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1060
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1061
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1062
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1063
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1064
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1065
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1066
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1067
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1068
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1069
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1070
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1071
- {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1051
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1052
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1053
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1054
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1055
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1056
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1057
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1058
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1059
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1060
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1061
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1062
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1063
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1064
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1065
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1066
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1067
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1068
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1069
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1070
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1071
+ {Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1072
1072
},
1073
1073
},
1074
1074
},
@@ -1086,7 +1086,7 @@ func TestValidateRewriteClientIP(t *testing.T) {
1086
1086
TrustedAddresses : []ngfAPIv1alpha2.RewriteClientIPAddress {
1087
1087
{
1088
1088
Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType ,
1089
- Value : "2001:db8:a0b:12f0::1/32 " ,
1089
+ Value : "2001:db8:a0b:12f0::1/128 " ,
1090
1090
},
1091
1091
{
1092
1092
Type : ngfAPIv1alpha2 .RewriteClientIPCIDRAddressType ,
@@ -1312,7 +1312,7 @@ func TestValidateNginxPlus(t *testing.T) {
1312
1312
NginxPlus : & ngfAPIv1alpha2.NginxPlus {
1313
1313
AllowedAddresses : []ngfAPIv1alpha2.NginxPlusAllowAddress {
1314
1314
{Type : ngfAPIv1alpha2 .NginxPlusAllowIPAddressType , Value : "2001:db8:a0b:12f0::1" },
1315
- {Type : ngfAPIv1alpha2 .NginxPlusAllowCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1315
+ {Type : ngfAPIv1alpha2 .NginxPlusAllowCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1316
1316
{Type : ngfAPIv1alpha2 .NginxPlusAllowIPAddressType , Value : "127.0.0.3" },
1317
1317
{Type : ngfAPIv1alpha2 .NginxPlusAllowCIDRAddressType , Value : "127.0.0.3/32" },
1318
1318
},
@@ -1328,7 +1328,7 @@ func TestValidateNginxPlus(t *testing.T) {
1328
1328
Spec : ngfAPIv1alpha2.NginxProxySpec {
1329
1329
NginxPlus : & ngfAPIv1alpha2.NginxPlus {
1330
1330
AllowedAddresses : []ngfAPIv1alpha2.NginxPlusAllowAddress {
1331
- {Type : ngfAPIv1alpha2 .NginxPlusAllowCIDRAddressType , Value : "2001:db8:a0b:12f0::1/32 " },
1331
+ {Type : ngfAPIv1alpha2 .NginxPlusAllowCIDRAddressType , Value : "2001:db8:a0b:12f0::1/128 " },
1332
1332
{Type : ngfAPIv1alpha2 .NginxPlusAllowCIDRAddressType , Value : "127.0.0.3/37" },
1333
1333
},
1334
1334
},
0 commit comments