@@ -1141,7 +1141,7 @@ func TestBuildGRPCRoute(t *testing.T) {
11411141 },
11421142 Conditions : []conditions.Condition {
11431143 conditions .NewRouteUnsupportedField ("There are rules with unsupported fields configurations: " +
1144- "spec.rules[0].name: Forbidden: NGINX Gateway Fabric does not support \" SectionName \" field at the moment " ),
1144+ "spec.rules[0].name: Forbidden: rule names are not supported " ),
11451145 },
11461146 },
11471147 name : "valid route with unsupported field" ,
@@ -1177,7 +1177,7 @@ func TestBuildGRPCRoute(t *testing.T) {
11771177 },
11781178 Conditions : []conditions.Condition {
11791179 conditions .NewRouteUnsupportedField ("There are rules with unsupported fields configurations: " +
1180- "spec.rules[0].name: Forbidden: NGINX Gateway Fabric does not support \" SectionName \" field at the moment " ),
1180+ "spec.rules[0].name: Forbidden: rule names are not supported " ),
11811181 conditions .NewRouteUnsupportedValue (
11821182 "All rules are invalid: [spec.rules[0].matches[0].method.service: Required value: service is required, " +
11831183 "spec.rules[0].matches[0].method.method: Required value: method is required]" ,
@@ -1574,7 +1574,7 @@ func TestProcessGRPCRouteRules_UnsupportedFields(t *testing.T) {
15741574 expectedValid : true ,
15751575 expectedConds : []conditions.Condition {
15761576 conditions .NewRouteUnsupportedField ("There are rules with unsupported fields configurations: spec.rules[0].name: " +
1577- "Forbidden: NGINX Gateway Fabric does not support \" SectionName \" field at the moment " ),
1577+ "Forbidden: rule names are not supported " ),
15781578 },
15791579 expectedWarns : 1 ,
15801580 },
@@ -1591,9 +1591,8 @@ func TestProcessGRPCRouteRules_UnsupportedFields(t *testing.T) {
15911591 expectedValid : true ,
15921592 expectedConds : []conditions.Condition {
15931593 conditions .NewRouteUnsupportedField ("There are rules with unsupported fields configurations: " +
1594- "[spec.rules[0].name: Forbidden: NGINX Gateway Fabric does not support \" SectionName\" field at the moment, " +
1595- "spec.rules[0].sessionPersistence: Forbidden: NGINX Gateway Fabric does not support \" SessionPersistence\" " +
1596- "field at the moment]" ),
1594+ "[spec.rules[0].name: Forbidden: rule names are not supported, " +
1595+ "spec.rules[0].sessionPersistence: Forbidden: sessionPersistence is not supported]" ),
15971596 },
15981597 expectedWarns : 2 ,
15991598 },
0 commit comments