@@ -979,7 +979,7 @@ func TestBuildHTTPRoute(t *testing.T) {
979979 },
980980 Conditions : []conditions.Condition {
981981 conditions .NewRouteUnsupportedField ("There are rules with unsupported fields configurations: " +
982- "spec.rules[0].name: Forbidden: NGINX Gateway Fabric does not support SectionName field at the moment" ),
982+ "spec.rules[0].name: Forbidden: NGINX Gateway Fabric does not support \" SectionName\" field at the moment" ),
983983 },
984984 },
985985 name : "valid route with unsupported field" ,
@@ -1783,7 +1783,7 @@ func TestProcessHTTPRouteRules_UnsupportedFields(t *testing.T) {
17831783 expectedValid : true ,
17841784 expectedConds : []conditions.Condition {
17851785 conditions .NewRouteUnsupportedField ("There are rules with unsupported fields configurations: spec.rules[0].name: " +
1786- "Forbidden: NGINX Gateway Fabric does not support SectionName field at the moment" ),
1786+ "Forbidden: NGINX Gateway Fabric does not support \" SectionName\" field at the moment" ),
17871787 },
17881788 expectedWarns : 1 ,
17891789 },
@@ -1804,11 +1804,11 @@ func TestProcessHTTPRouteRules_UnsupportedFields(t *testing.T) {
18041804 expectedValid : true ,
18051805 expectedConds : []conditions.Condition {
18061806 conditions .NewRouteUnsupportedField ("There are rules with unsupported fields configurations: " +
1807- "[spec.rules[0].name: Forbidden: NGINX Gateway Fabric does not support SectionName field at the moment, " +
1808- "spec.rules[0].timeouts: Forbidden: NGINX Gateway Fabric does not support \" HTTPRouteTimeouts \" " +
1809- "field at the moment, spec.rules[0].retry: Forbidden: NGINX Gateway Fabric does not support " +
1810- "\" HTTPRouteRetry\" field at the moment, spec.rules[0].sessionPersistence: Forbidden: NGINX Gateway " +
1811- "Fabric does not support \" SessionPersistence\" field at the moment]" ),
1807+ "[spec.rules[0].name: Forbidden: NGINX Gateway Fabric does not support \" SectionName\" " +
1808+ "field at the moment, spec.rules[0].timeouts: Forbidden: NGINX Gateway Fabric does not support " +
1809+ "\" HTTPRouteTimeouts \" field at the moment, spec.rules[0].retry: Forbidden: NGINX Gateway Fabric " +
1810+ "does not support \" HTTPRouteRetry\" field at the moment, spec.rules[0].sessionPersistence: Forbidden: " +
1811+ "NGINX Gateway Fabric does not support \" SessionPersistence\" field at the moment]" ),
18121812 },
18131813 expectedWarns : 4 ,
18141814 },
0 commit comments