From b61c8b9428f983db170dcae12f432f878116805e Mon Sep 17 00:00:00 2001 From: Mattia Lavacca Date: Mon, 17 Jun 2024 11:49:23 +0200 Subject: [PATCH] test: gatewayPort8080 conformance Signed-off-by: Mattia Lavacca --- test/conformance/conformance_test.go | 41 ++++++++++++++++------------ 1 file changed, 24 insertions(+), 17 deletions(-) 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 {