@@ -985,12 +985,12 @@ func TestAddBackendRefsToRules(t *testing.T) {
985985 },
986986 expectedConditions : []conditions.Condition {
987987 conditions .NewRouteBackendRefUnsupportedProtocol (
988- "The RouteType http does not support service port appProtocol kubernetes.io/h2c;" +
988+ "The Route type 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 The RouteType http" ,
993+ name : "invalid backendRef with service port appProtocol h2c and Route type 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 RouteType http" ,
1008+ name : "valid backendRef with service port appProtocol ws and Route type 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- " The RouteType http, and corresponding BackendTLSPolicy" ,
1025+ " The Route type 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- "The RouteType http does not support service port appProtocol kubernetes.io/wss;" +
1040+ "The Route type 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, RouteType http, but missing BackendTLSPolicy" ,
1045+ name : "invalid backendRef with service port appProtocol wss, Route type 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 RouteType grpc" ,
1060+ name : "valid backendRef with service port appProtocol h2c and Route type 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- "The RouteType grpc does not support service port appProtocol kubernetes.io/ws" ,
1075+ "The Route type 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 RouteType grpc" ,
1079+ name : "invalid backendRef with service port appProtocol ws and Route type 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- "The RouteType grpc does not support service port appProtocol kubernetes.io/wss" ,
1094+ "The Route type 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 RouteType grpc" ,
1098+ name : "invalid backendRef with service port appProtocol wss and Route type 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 RouteType http" ,
1114+ " service port appProtocol and Route type 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 RouteType grpc" ,
1130+ " service port appProtocol and Route type grpc" ,
11311131 },
11321132 {
11331133 route : modRoute (createRoute ("hr1" , RouteTypeHTTP , "Service" , 1 , "svc1" ), func (route * L7Route ) * L7Route {
0 commit comments