Skip to content

Commit

Permalink
test: gatewayPort8080 conformance
Browse files Browse the repository at this point in the history
Signed-off-by: Mattia Lavacca <[email protected]>
  • Loading branch information
mlavacca committed Jun 18, 2024
1 parent 333a6da commit b61c8b9
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions test/conformance/conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b61c8b9

Please sign in to comment.