Commit Graph

18 Commits

Author SHA1 Message Date
Patrick Ohly
2664740043 e2e: move feature gate support from test/e2e to test/e2e_node
The test/e2e suite has never supported feature gates:
- it cannot discover at runtime how the cluster is configured
- its --feature-gates parameter had no effect

Despite that, tests were written that used
e2eskipper.SkipUnlessFeatureGateEnabled even though that function then only
checked the default feature gate state.  To catch such mistakes, e2e tests
suites now must explicitly enable feature gate checking via
e2eskipper.InitFeatureGates. They also must register their own command line
flag. When that is not done, then using SkipUnlessFeatureGateEnabled or
SkipIfFeatureGateEnabled leads to a test failure.

test/e2e_node does both and therefore continues to work as before.
2022-04-25 15:41:41 +02:00
Ciprian Hacman
a0abe5aa33 Clean up dockershim in tests
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2021-12-22 13:05:34 +02:00
Ciprian Hacman
574f788711 Skip LB test for IPv6 clusters 2021-12-13 11:43:06 +02:00
Hanna Lee
04fadd8b03 Fix SA5011 errors by making control flow abort obvious to linter 2021-11-17 08:56:00 +01:00
Martin Schimandl
c9edee165a Cleanup FeatureGate skippers (#105428)
* Cleanup FeatureGate skippers

* Perform changes requested by review

* some more review related changes

* Rename skipper functions to make code more readable

* add utilfeature back in
2021-10-20 01:47:57 -07:00
Matthew Wong
cd318aec0b Disable deprecated volume limits test when migration enabled and replace with CSI-specific test 2021-06-22 11:31:00 -07:00
Davanum Srinivas
6c76fe9c14 Skip test when depending on feature
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-09 17:22:10 -05:00
Derek Carr
6215b12c84 e2e testing for hugepages downward api 2021-03-05 11:11:27 -05:00
jornshen
1d83b28dfe refector service some e2e cases to make it runing in multi providers
the cases are as fellow:
- "should work after restarting kube-proxy"
- "should work after restarting apiserver"
2020-10-30 19:39:02 +08:00
Ciprian Hacman
33ac3c36cc Add new flags for node arch 2020-07-13 20:25:14 +03:00
Jesus Herrera
aeb654495b Fix usage of incorrect TestContext variable 2020-05-03 15:34:43 -04:00
tanjunchen
a3d802cb68 test/framework: psp.go skipper.go remove direct import /k8s.io/kubernetes/pkg 2020-03-20 10:13:44 +08:00
Kenichi Omichi
c586d8837a Move GetClusterZones() to e2enode 2020-03-10 18:16:54 +00:00
Jordan Liggitt
b7c2faf26c client-go dynamic client: add context to callers 2020-03-06 10:56:23 -05:00
Michelle Au
3ee30343cc Fix log formatting for skipper. "INFO" is already logged by Logf, and it
wasn't in the format syntax.

Change-Id: I760007c9c524bb465f428eb70e7fb30993475086
2020-03-04 17:43:24 -08:00
drfish
5782d616f2 Move skip method from e2e fw ginkgowrapper to e2e skipper fw 2020-02-13 06:25:43 +08:00
tanjunchen
7ff3a1f8db test/e2e/framework: remove skip.go and use e2eskipper subpackage 2020-02-01 01:18:48 +08:00
Kenichi Omichi
0d86f0a037 Separate skip as framework subpackage 2020-01-09 08:44:55 +00:00