From 8de5e479702e6562f4f703b4cbbbcda156b834fa Mon Sep 17 00:00:00 2001 From: Jintao Zhang Date: Tue, 16 Apr 2024 23:57:07 +0800 Subject: [PATCH] set mode for GWAPI conformance test Signed-off-by: Jintao Zhang --- test/conformance/gateway_conformance_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/conformance/gateway_conformance_test.go b/test/conformance/gateway_conformance_test.go index e36114f41f..2c3e6f7791 100644 --- a/test/conformance/gateway_conformance_test.go +++ b/test/conformance/gateway_conformance_test.go @@ -57,13 +57,16 @@ 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) } @@ -71,6 +74,7 @@ func TestGatewayConformance(t *testing.T) { 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...)