File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,12 @@ func filterOutDisabledSpecs(specs et.ExtensionTestSpecs) et.ExtensionTestSpecs {
11
11
"Alpha" : { // alpha features that are not gated
12
12
"[Feature:StorageVersionAPI]" ,
13
13
"[Feature:ClusterTrustBundle]" ,
14
- "[Feature:SELinuxMount]" ,
15
- "[FeatureGate:SELinuxMount]" ,
16
14
"[Feature:DynamicResourceAllocation]" ,
17
- "[Feature:VolumeAttributesClass]" , // disabled Beta
18
15
"[sig-cli] Kubectl client Kubectl prune with applyset should apply and prune objects" , // Alpha feature since k8s 1.27
19
16
// 4.19
20
17
"[Feature:PodLevelResources]" ,
21
18
"[Feature:PodLogsQuerySplitStreams]" ,
22
19
// 4.20
23
- "[Feature:OffByDefault]" ,
24
20
"[Feature:CBOR]" ,
25
21
},
26
22
// tests for features that are not implemented in openshift
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package main
2
2
3
3
import (
4
4
"fmt"
5
+ "strings"
5
6
6
7
et "github.com/openshift-eng/openshift-tests-extension/pkg/extension/extensiontests"
7
8
"k8s.io/kubernetes/pkg/features"
@@ -15,6 +16,7 @@ func addEnvironmentSelectors(specs et.ExtensionTestSpecs) {
15
16
filterByTopology (specs )
16
17
filterByNoOptionalCapabilities (specs )
17
18
filterByNetwork (specs )
19
+ filterByFeatureGates (specs )
18
20
19
21
// LoadBalancer tests in 1.31 require explicit platform-specific skips
20
22
// https://issues.redhat.com/browse/OCPBUGS-38840
@@ -273,3 +275,15 @@ func filterByNetwork(specs et.ExtensionTestSpecs) {
273
275
AddLabel (fmt .Sprintf ("[Skipped:%s]" , network ))
274
276
}
275
277
}
278
+
279
+ // filter all tests from feature gates that are not explicitly enabled
280
+ func filterByFeatureGates (specs et.ExtensionTestSpecs ) {
281
+ for _ , spec := range specs {
282
+ for label := range spec .Labels {
283
+ if strings .Contains (label , "FeatureGate:" ) {
284
+ featureGate := strings .TrimPrefix (label , "FeatureGate:" )
285
+ spec .Exclude (et .FeatureGateDisabled (featureGate ))
286
+ }
287
+ }
288
+ }
289
+ }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ NETWORK_SKIPS="\[Skipped:Network/OVNKubernetes\]|\[Feature:Networking-IPv6\]|\[F
31
31
TEST_SUITE=" ${TEST_SUITE:- parallel} "
32
32
COMMON_SKIPS=" \[Slow\]|\[Disruptive\]|\[Flaky\]|\[Disabled:.+\]|\[Skipped:${PLATFORM} \]|${NETWORK_SKIPS} "
33
33
# Skip tests for features that require a TechPreview cluster. TODO: Remove when the feature is enabled by default.
34
- COMMON_SKIPS=" \[OCPFeatureGate:VolumeGroupSnapshot\]|${COMMON_SKIPS} "
34
+ COMMON_SKIPS=" \[OCPFeatureGate:VolumeGroupSnapshot\]|\[Feature:OffByDefault\]| ${COMMON_SKIPS} "
35
35
36
36
case " ${TEST_SUITE} " in
37
37
serial)
You can’t perform that action at this time.
0 commit comments