Commit Graph

9 Commits

Author SHA1 Message Date
toyoda
7499d80fd8 Use ExpectNotEqual in test/e2e/network/ 2020-03-18 16:30:56 +09:00
Jin Hase
093fd4ab02 Add comments in several hack/verify-*.sh(s-v) 2020-01-21 19:10:46 +09:00
Kenichi Omichi
ad988085f6 Add code check for framework.ExpectEqual()
This adds code check for using framework.ExpectEqual(foo, bar) in
e2e tests for keeping the test code simple.
2019-07-31 19:03:39 +00:00
Kubernetes Prow Robot
614aab80f5
Merge pull request #78740 from oomichi/extend-check
Make the check strict to use ExpectNoError()
2019-07-30 01:59:04 -07:00
Kenichi Omichi
5628b6b50e Replace mapfile with kube::util::read-array
During the review of https://github.com/kubernetes/kubernetes/pull/78779
we've known mapfile doesn't work on macOS.
So we need to use alternative way instead and this is it.
2019-06-20 00:25:06 +00:00
Kenichi Omichi
d5bc1ae8aa Make the check strict to use ExpectNoError()
As https://github.com/kubernetes/kubernetes/pull/78478 we can use
ExpectNoError() instead of Expect(err).ToNot(HaveOccurred()) also.
This makes the test code check strict to cover the above case and
replaces the remaining in test/e2e/common/expansion.go
2019-06-18 16:55:16 +00:00
Odin Ugedal
b0a1cba71a
Run verify-test-code on all e2e tests 2019-06-14 17:51:49 +02:00
Kenichi Omichi
63e0507fd9 Check e2e test code to use ExpectError()
We can use framework.ExpectError() for checking the expected error
happens. However Expect(err).To(HaveOccurred()) can be used instead
and that makes the e2e test code unreadable.
This adds the check to use framework.ExpectError() for readable code.
2019-05-29 17:04:58 +00:00
Kenichi Omichi
496a18febc Add hack/verify-test-code.sh
This script checks coding style for test code.
It is useful to enforce developers to use framework methods for
keeping readable test code for example.
2019-05-22 14:15:25 +00:00