Skip to content

Commit 69ce9ea

Browse files
committed
fix(conformance): parentRef port is extended
The test HTTPRouteInvalidParentRefSectionNameNotMatchingPort uses a ParentRef port (extended feature). For this purpose, a new extended feature HTTPRouteParentRefPort has been introduced and used in the aforementioned test. Signed-off-by: Mattia Lavacca <[email protected]>
1 parent 1b14708 commit 69ce9ea

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

conformance/tests/httproute-invalid-parentref-section-name-not-matching-port.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ var HTTPRouteInvalidParentRefSectionNameNotMatchingPort = suite.ConformanceTest{
3737
Features: []suite.SupportedFeature{
3838
suite.SupportGateway,
3939
suite.SupportHTTPRoute,
40+
suite.SupportHTTPRouteParentRefPort,
4041
},
4142
Manifests: []string{"tests/httproute-invalid-parentref-section-name-not-matching-port.yaml"},
4243
Test: func(t *testing.T, suite *suite.ConformanceTestSuite) {

conformance/utils/suite/features.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ const (
133133

134134
// This option indicates support for HTTPRoute backendRequest timeouts (extended conformance).
135135
SupportHTTPRouteBackendTimeout SupportedFeature = "HTTPRouteBackendTimeout"
136+
137+
// This option indicates support for HTTPRoute parentRef port (extended conformance).
138+
SupportHTTPRouteParentRefPort SupportedFeature = "HTTPRouteParentRefPort"
136139
)
137140

138141
// HTTPRouteExtendedFeatures includes all the supported features for HTTPRoute
@@ -151,6 +154,7 @@ var HTTPRouteExtendedFeatures = sets.New(
151154
SupportHTTPRouteRequestMultipleMirrors,
152155
SupportHTTPRouteRequestTimeout,
153156
SupportHTTPRouteBackendTimeout,
157+
SupportHTTPRouteParentRefPort,
154158
)
155159

156160
// -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)