Skip to content

Commit ab01feb

Browse files
Merge pull request #2256 from smg247/network-skip-fix
TRT-1854: fix OVNKubernetes network skips
2 parents 95c8dfd + 77d3dad commit ab01feb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: openshift-hack/cmd/k8s-tests-ext/environment_selectors.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ func addEnvironmentSelectors(specs et.ExtensionTestSpecs) {
1717
et.NameContainsAll("[sig-network] LoadBalancers [Feature:LoadBalancer]", "UDP"),
1818
et.NameContainsAll("[sig-network] LoadBalancers [Feature:LoadBalancer]", "session affinity"),
1919
}).Exclude(et.PlatformEquals("aws"))
20+
21+
specs.SelectAny([]et.SelectFunction{ // Since these must use "NameContainsAll" they cannot be included in filterByNetwork
22+
et.NameContainsAll("NetworkPolicy", "named port"),
23+
}).Exclude(et.NetworkEquals("OVNKubernetes"))
2024
}
2125

2226
// filterByPlatform is a helper function to do, simple, "NameContains" filtering on tests by platform
@@ -213,12 +217,7 @@ func filterByNoOptionalCapabilities(specs et.ExtensionTestSpecs) {
213217

214218
// filterByNetwork is a helper function to do, simple, "NameContains" filtering on tests by network
215219
func filterByNetwork(specs et.ExtensionTestSpecs) {
216-
var networkExclusions = map[string][]string{
217-
"OVNKubernetes": {
218-
"NetworkPolicy",
219-
"named port",
220-
},
221-
}
220+
var networkExclusions = map[string][]string{}
222221

223222
for network, exclusions := range networkExclusions {
224223
var selectFunctions []et.SelectFunction

0 commit comments

Comments
 (0)