Commit Graph

11 Commits

Author SHA1 Message Date
Patrick Ohly
df5d84ae81 e2e: accept context from Ginkgo
Every ginkgo callback should return immediately when a timeout occurs or the
test run manually gets aborted with CTRL-C. To do that, they must take a ctx
parameter and pass it through to all code which might block.

This is a first automated step towards that: the additional parameter got added
with

    sed -i 's/\(framework.ConformanceIt\|ginkgo.It\)\(.*\)func() {$/\1\2func(ctx context.Context) {/' \
        $(git grep -l -e framework.ConformanceIt -e ginkgo.It )
    $GOPATH/bin/goimports -w $(git status | grep modified: | sed -e 's/.* //')

log_test.go was left unchanged.
2022-12-10 19:50:18 +01:00
ahrtr
6e3cf5eca2 replace ioutil with io and os for hack 2021-10-30 14:44:41 +08:00
wangyysde
e2e1c94f06 use native error instead of github.com/pkg/errors
Signed-off-by: wangyysde <net_use@bzhy.com>
2021-07-01 10:54:09 +08:00
Benjamin Elder
56e092e382 hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
Kenichi Omichi
7b44ad0606 Update conformance requirement check
After solving the issue https://github.com/kubernetes/kubernetes/issues/87047
skip functions have been moved to e2eskipper from e2e framework.
This updates the conformance requirement check to follow the move.
2020-02-06 20:09:00 +00:00
chenyaqi01
3175c9e226 simplify regexp with raw string 2019-09-20 16:53:56 +08:00
Guangming Wang
5855b175c4 fix regex for go file, make it more accurate 2019-09-03 22:37:14 +08:00
ramnar
fd9dd13cc2
Remove duplicate error messages
Remove duplicate error messages when command fails
2019-07-04 17:25:33 +05:30
Odin Ugedal
35cb87f9cf
Fix file permissions for non executable files
Normal files should have permissions 644 by default,
and does not require the last bit to be
executable

Signed-off-by: Odin Ugedal <odin@ugedal.com>
2019-06-14 21:04:50 +02:00
Kenichi Omichi
52885a8ec3 Check conformance test should not call any Skip
Basically conformance test checks the target k8s cluster works all
features which are specified in each test and that should not depend
on any condition.
This adds checking that conformance test should not call any Skip
methods. And it detects the existing conformance test
"creating/deleting custom resource definition objects works"
calls framework.SkipUnlessServerVersionGTE(). So this removes the
Skip also.
2019-05-03 18:37:31 +00:00
Kenichi Omichi
3d64667507 Add check-conformance-test-requirements.go
We have defined requirements of conformance test as [1], and this
adds coding check for one requirement "it works for all providers".

[1]: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/conformance-tests.md#conformance-test-requirements
2019-03-22 21:56:07 +00:00