diff --git a/test/conformance/conformance_test.go b/test/conformance/conformance_test.go index f283065c7..f232c47be 100644 --- a/test/conformance/conformance_test.go +++ b/test/conformance/conformance_test.go @@ -42,24 +42,31 @@ var skippedTestsForTraditionalCompatibleRouter = []string{ tests.HTTPRouteWeight.ShortName, } -var traditionalCompatibleRouterSupportedFeatures = sets.New( - // core features - features.SupportHTTPRoute, - // extended - features.SupportHTTPRouteResponseHeaderModification, - features.SupportHTTPRoutePathRewrite, - features.SupportHTTPRouteHostRewrite, -) +var ( + commonSupportedFeatures = sets.New( + // core features + features.SupportHTTPRoute, + features.SupportGateway, + features.SupportReferenceGrant, + + // Gateway extended + features.SupportGatewayPort8080, + + // HTTPRoute extended + features.SupportHTTPRouteResponseHeaderModification, + features.SupportHTTPRoutePathRewrite, + features.SupportHTTPRouteHostRewrite, + ) -var expressionsRouterSupportedFeatures = sets.New( - // core features - features.SupportHTTPRoute, - // extended - features.SupportHTTPRouteResponseHeaderModification, - features.SupportHTTPRouteMethodMatching, - features.SupportHTTPRouteQueryParamMatching, - features.SupportHTTPRoutePathRewrite, - features.SupportHTTPRouteHostRewrite, + traditionalCompatibleRouterSupportedFeatures = commonSupportedFeatures.Insert( + // add here the traditional compatible router specific features + ) + + expressionsRouterSupportedFeatures = commonSupportedFeatures.Insert( + // extended + features.SupportHTTPRouteMethodMatching, + features.SupportHTTPRouteQueryParamMatching, + ) ) type ConformanceConfig struct {