forked from envoyproxy/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add supported features to gateway class (envoyproxy#2491)
* feat: add supported features to gateway class Signed-off-by: Kobi Levi <kobilevi503@gmail.com> * remove skipped test features from supported features list Signed-off-by: Kobi Levi <kobilevi503@gmail.com> --------- Signed-off-by: Kobi Levi <kobilevi503@gmail.com>
- Loading branch information
Showing
13 changed files
with
272 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright Envoy Gateway Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// The full text of the Apache license is available in the LICENSE file at | ||
// the root of the repo. | ||
|
||
package conformance | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/util/sets" | ||
"sigs.k8s.io/gateway-api/conformance/tests" | ||
"sigs.k8s.io/gateway-api/conformance/utils/suite" | ||
"sigs.k8s.io/gateway-api/pkg/features" | ||
) | ||
|
||
// SkipTests is a list of tests that are skipped in the conformance suite. | ||
var SkipTests = []suite.ConformanceTest{ | ||
tests.GatewayStaticAddresses, | ||
tests.GatewayHTTPListenerIsolation, // https://github.com/kubernetes-sigs/gateway-api/issues/3049 | ||
tests.HTTPRouteBackendRequestHeaderModifier, // https://github.com/envoyproxy/gateway/issues/3338 | ||
} | ||
|
||
func skipTestsShortNames(skipTests []suite.ConformanceTest) []string { | ||
shortNames := make([]string, len(skipTests)) | ||
for i, test := range skipTests { | ||
shortNames[i] = test.ShortName | ||
} | ||
return shortNames | ||
} | ||
|
||
// EnvoyGatewaySuite is the conformance suite configuration for the Gateway API. | ||
var EnvoyGatewaySuite = suite.ConformanceOptions{ | ||
SupportedFeatures: features.AllFeatures, | ||
ExemptFeatures: sets.New[features.SupportedFeature](). | ||
Insert(features.MeshCoreFeatures.UnsortedList()...). | ||
Insert(features.MeshExtendedFeatures.UnsortedList()...), | ||
SkipTests: skipTestsShortNames(SkipTests), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.