@@ -616,15 +616,15 @@ func TestVerifyIPFamily(t *testing.T) {
616616 IPFamily : helpers .GetPointer (ngfAPIv1alpha2 .IPv4 ),
617617 },
618618 svcIPFamily : []v1.IPFamily {v1 .IPv6Protocol },
619- expErr : errors .New ("service configured with IPv6 family but NginxProxy is configured with IPv4" ),
619+ expErr : errors .New ("The Service configured with IPv6 family but NginxProxy is configured with IPv4" ),
620620 },
621621 {
622622 name : "Invalid - IPv6 configured for NGINX, service has only IPv4" ,
623623 npCfg : & EffectiveNginxProxy {
624624 IPFamily : helpers .GetPointer (ngfAPIv1alpha2 .IPv6 ),
625625 },
626626 svcIPFamily : []v1.IPFamily {v1 .IPv4Protocol },
627- expErr : errors .New ("service configured with IPv4 family but NginxProxy is configured with IPv6" ),
627+ expErr : errors .New ("The Service configured with IPv4 family but NginxProxy is configured with IPv6" ),
628628 },
629629 {
630630 name : "Valid - When NginxProxy is nil" ,
@@ -985,12 +985,12 @@ func TestAddBackendRefsToRules(t *testing.T) {
985985 },
986986 expectedConditions : []conditions.Condition {
987987 conditions .NewRouteBackendRefUnsupportedProtocol (
988- "route type http does not support service port appProtocol kubernetes.io/h2c;" +
988+ "The RouteType http does not support service port appProtocol kubernetes.io/h2c;" +
989989 " nginx does not support proxying to upstreams with http2 or h2c" ,
990990 ),
991991 },
992992 policies : emptyPolicies ,
993- name : "invalid backendRef with service port appProtocol h2c and route type http" ,
993+ name : "invalid backendRef with service port appProtocol h2c and The RouteType http" ,
994994 },
995995 {
996996 route : createRoute ("hr1" , RouteTypeHTTP , "Service" , 1 , "svcWS" ),
@@ -1005,7 +1005,7 @@ func TestAddBackendRefsToRules(t *testing.T) {
10051005 },
10061006 expectedConditions : nil ,
10071007 policies : emptyPolicies ,
1008- name : "valid backendRef with service port appProtocol ws and route type http" ,
1008+ name : "valid backendRef with service port appProtocol ws and RouteType http" ,
10091009 },
10101010 {
10111011 route : createRoute ("hr1" , RouteTypeHTTP , "Service" , 1 , "svcWSS" ),
@@ -1022,7 +1022,7 @@ func TestAddBackendRefsToRules(t *testing.T) {
10221022 expectedConditions : nil ,
10231023 policies : policiesMatching ,
10241024 name : "valid backendRef with service port appProtocol wss," +
1025- " route type http, and corresponding BackendTLSPolicy" ,
1025+ " The RouteType http, and corresponding BackendTLSPolicy" ,
10261026 },
10271027 {
10281028 route : createRoute ("hr1" , RouteTypeHTTP , "Service" , 1 , "svcWSS" ),
@@ -1037,12 +1037,12 @@ func TestAddBackendRefsToRules(t *testing.T) {
10371037 },
10381038 expectedConditions : []conditions.Condition {
10391039 conditions .NewRouteBackendRefUnsupportedProtocol (
1040- "route type http does not support service port appProtocol kubernetes.io/wss;" +
1040+ "The RouteType http does not support service port appProtocol kubernetes.io/wss;" +
10411041 " missing corresponding BackendTLSPolicy" ,
10421042 ),
10431043 },
10441044 policies : emptyPolicies ,
1045- name : "invalid backendRef with service port appProtocol wss, route type http, but missing BackendTLSPolicy" ,
1045+ name : "invalid backendRef with service port appProtocol wss, RouteType http, but missing BackendTLSPolicy" ,
10461046 },
10471047 {
10481048 route : createRoute ("gr1" , RouteTypeGRPC , "Service" , 1 , "svcH2c" ),
@@ -1057,7 +1057,7 @@ func TestAddBackendRefsToRules(t *testing.T) {
10571057 },
10581058 expectedConditions : nil ,
10591059 policies : emptyPolicies ,
1060- name : "valid backendRef with service port appProtocol h2c and route type grpc" ,
1060+ name : "valid backendRef with service port appProtocol h2c and RouteType grpc" ,
10611061 },
10621062 {
10631063 route : createRoute ("gr1" , RouteTypeGRPC , "Service" , 1 , "svcWS" ),
@@ -1072,11 +1072,11 @@ func TestAddBackendRefsToRules(t *testing.T) {
10721072 },
10731073 expectedConditions : []conditions.Condition {
10741074 conditions .NewRouteBackendRefUnsupportedProtocol (
1075- "route type grpc does not support service port appProtocol kubernetes.io/ws" ,
1075+ "The RouteType grpc does not support service port appProtocol kubernetes.io/ws" ,
10761076 ),
10771077 },
10781078 policies : emptyPolicies ,
1079- name : "invalid backendRef with service port appProtocol ws and route type grpc" ,
1079+ name : "invalid backendRef with service port appProtocol ws and RouteType grpc" ,
10801080 },
10811081 {
10821082 route : createRoute ("gr1" , RouteTypeGRPC , "Service" , 1 , "svcWSS" ),
@@ -1091,11 +1091,11 @@ func TestAddBackendRefsToRules(t *testing.T) {
10911091 },
10921092 expectedConditions : []conditions.Condition {
10931093 conditions .NewRouteBackendRefUnsupportedProtocol (
1094- "route type grpc does not support service port appProtocol kubernetes.io/wss" ,
1094+ "The RouteType grpc does not support service port appProtocol kubernetes.io/wss" ,
10951095 ),
10961096 },
10971097 policies : emptyPolicies ,
1098- name : "invalid backendRef with service port appProtocol wss and route type grpc" ,
1098+ name : "invalid backendRef with service port appProtocol wss and RouteType grpc" ,
10991099 },
11001100 {
11011101 route : createRoute ("hr1" , RouteTypeHTTP , "Service" , 1 , "svcGRPC" ),
@@ -1111,7 +1111,7 @@ func TestAddBackendRefsToRules(t *testing.T) {
11111111 expectedConditions : nil ,
11121112 policies : emptyPolicies ,
11131113 name : "valid backendRef with non-Kubernetes Standard Application Protocol" +
1114- " service port appProtocol and route type http" ,
1114+ " service port appProtocol and RouteType http" ,
11151115 },
11161116 {
11171117 route : createRoute ("gr1" , RouteTypeGRPC , "Service" , 1 , "svcGRPC" ),
@@ -1127,7 +1127,7 @@ func TestAddBackendRefsToRules(t *testing.T) {
11271127 expectedConditions : nil ,
11281128 policies : emptyPolicies ,
11291129 name : "valid backendRef with non-Kubernetes Standard Application Protocol" +
1130- " service port appProtocol and route type grpc" ,
1130+ " service port appProtocol and RouteType grpc" ,
11311131 },
11321132 {
11331133 route : modRoute (createRoute ("hr1" , RouteTypeHTTP , "Service" , 1 , "svc1" ), func (route * L7Route ) * L7Route {
@@ -1528,7 +1528,7 @@ func TestCreateBackend(t *testing.T) {
15281528 Valid : true ,
15291529 InvalidForGateways : map [types.NamespacedName ]conditions.Condition {
15301530 {Namespace : "test" , Name : "gateway" }: conditions .NewRouteInvalidIPFamily (
1531- `service configured with IPv4 family but NginxProxy is configured with IPv6` ,
1531+ `The Service configured with IPv4 family but NginxProxy is configured with IPv6` ,
15321532 ),
15331533 },
15341534 },
0 commit comments