Skip to content

Commit

Permalink
set mode for GWAPI conformance test
Browse files Browse the repository at this point in the history
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
  • Loading branch information
tao12345666333 committed Apr 16, 2024
1 parent 56a05fb commit 8de5e47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/conformance/gateway_conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,24 @@ func TestGatewayConformance(t *testing.T) {
var (
skippedTests []string
supportedFeatures []suite.SupportedFeature
mode string
)
switch rf := testenv.KongRouterFlavor(); rf {
case dpconf.RouterFlavorTraditionalCompatible:
skippedTests = skippedTestsForTraditionalRoutes
supportedFeatures = traditionalRoutesSupportedFeatures
mode = "traditional-compatible"
case dpconf.RouterFlavorExpressions:
supportedFeatures = expressionRoutesSupportedFeatures
mode = "expressions"
default:
t.Fatalf("unsupported KongRouterFlavor: %s", rf)
}

opts := conformance.DefaultOptions(t)
opts.GatewayClassName = gatewayClassName
opts.Debug = true
opts.Mode = mode
opts.CleanupBaseResources = !testenv.IsCI()
opts.BaseManifests = conformanceTestsBaseManifests
opts.SupportedFeatures = sets.New(supportedFeatures...)
Expand Down

0 comments on commit 8de5e47

Please sign in to comment.