Skip to content

Commit 7c18de2

Browse files
committed
Use sets.New
Signed-off-by: Huang Xin <[email protected]>
1 parent b85174a commit 7c18de2

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

conformance/conformance_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ func TestConformance(t *testing.T) {
5151
supportedFeatures.Delete(feature)
5252
}
5353

54-
t.Logf("Running conformance tests with %s GatewayClass\n cleanup: %t\n debug: %t\n supported features: [%v]\n exempt features: [%v]",
55-
*flags.GatewayClassName, *flags.CleanupBaseResources, *flags.ShowDebug, *flags.SupportedFeatures, *flags.ExemptFeatures)
54+
t.Logf("Running conformance tests with %s GatewayClass\n cleanup: %t\n debug: %t\n enable all features: %t \n supported features: [%v]\n exempt features: [%v]",
55+
*flags.GatewayClassName, *flags.CleanupBaseResources, *flags.ShowDebug, *flags.EnableAllSupportedFeatures, *flags.SupportedFeatures, *flags.ExemptFeatures)
5656

5757
cSuite := suite.New(suite.Options{
5858
Client: client,

conformance/utils/suite/suite.go

+17-17
Original file line numberDiff line numberDiff line change
@@ -74,29 +74,29 @@ const (
7474

7575
// StandardCoreFeatures are the features that are required to be conformant with
7676
// the Core API features that are part of the Standard release channel.
77-
var StandardCoreFeatures = sets.Set[SupportedFeature]{
78-
SupportReferenceGrant: {},
79-
}
77+
var StandardCoreFeatures = sets.New(
78+
SupportReferenceGrant,
79+
)
8080

8181
// AllFeatures contains all the supported features and can be used to run all
8282
// conformance tests with `all-features` flag.
8383
//
8484
// Note that the AllFeatures must in sync with defined features when the
8585
// feature constants change.
86-
var AllFeatures = sets.Set[SupportedFeature]{
87-
SupportReferenceGrant: {},
88-
SupportTLSRoute: {},
89-
SupportHTTPRouteQueryParamMatching: {},
90-
SupportHTTPRouteMethodMatching: {},
91-
SupportHTTPResponseHeaderModification: {},
92-
SupportRouteDestinationPortMatching: {},
93-
SupportGatewayClassObservedGenerationBump: {},
94-
SupportHTTPRoutePortRedirect: {},
95-
SupportHTTPRouteSchemeRedirect: {},
96-
SupportHTTPRoutePathRedirect: {},
97-
SupportHTTPRouteHostRewrite: {},
98-
SupportHTTPRoutePathRewrite: {},
99-
}
86+
var AllFeatures = sets.New(
87+
SupportReferenceGrant,
88+
SupportTLSRoute,
89+
SupportHTTPRouteQueryParamMatching,
90+
SupportHTTPRouteMethodMatching,
91+
SupportHTTPResponseHeaderModification,
92+
SupportRouteDestinationPortMatching,
93+
SupportGatewayClassObservedGenerationBump,
94+
SupportHTTPRoutePortRedirect,
95+
SupportHTTPRouteSchemeRedirect,
96+
SupportHTTPRoutePathRedirect,
97+
SupportHTTPRouteHostRewrite,
98+
SupportHTTPRoutePathRewrite,
99+
)
100100

101101
// ConformanceTestSuite defines the test suite used to run Gateway API
102102
// conformance tests.

0 commit comments

Comments
 (0)