@@ -1141,7 +1141,7 @@ func TestBuildGRPCRoute(t *testing.T) {
1141
1141
},
1142
1142
Conditions : []conditions.Condition {
1143
1143
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 " ),
1145
1145
},
1146
1146
},
1147
1147
name : "valid route with unsupported field" ,
@@ -1177,7 +1177,7 @@ func TestBuildGRPCRoute(t *testing.T) {
1177
1177
},
1178
1178
Conditions : []conditions.Condition {
1179
1179
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 " ),
1181
1181
conditions .NewRouteUnsupportedValue (
1182
1182
"All rules are invalid: [spec.rules[0].matches[0].method.service: Required value: service is required, " +
1183
1183
"spec.rules[0].matches[0].method.method: Required value: method is required]" ,
@@ -1574,7 +1574,7 @@ func TestProcessGRPCRouteRules_UnsupportedFields(t *testing.T) {
1574
1574
expectedValid : true ,
1575
1575
expectedConds : []conditions.Condition {
1576
1576
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 " ),
1578
1578
},
1579
1579
expectedWarns : 1 ,
1580
1580
},
@@ -1591,9 +1591,8 @@ func TestProcessGRPCRouteRules_UnsupportedFields(t *testing.T) {
1591
1591
expectedValid : true ,
1592
1592
expectedConds : []conditions.Condition {
1593
1593
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]" ),
1597
1596
},
1598
1597
expectedWarns : 2 ,
1599
1598
},
0 commit comments