From 1aa58532c856b62453d47b54c0501810ff1372bd Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 11 May 2022 11:48:58 +0200 Subject: [PATCH] test: enable unit tests under test/e2e The test/e2e directory contains several unit tests that should run as part of "make test": ./test/e2e/chaosmonkey/chaosmonkey_test.go ./test/e2e/storage/external/external_test.go ./test/e2e/storage/utils/utils_test.go ./test/e2e/framework/log_test.go ./test/e2e/framework/testfiles/testfiles_test.go ./test/e2e/framework/timer/timer_test.go ./test/e2e/framework/node/wait_test.go ./test/e2e/framework/pod/resource_test.go ./test/e2e/framework/config/config_test.go ./test/e2e/framework/ingress/ingress_utils_test.go ./test/e2e/framework/providers/gce/firewall_test.go Because they were excluded by "./test/e2e/*", some of them became outdated. ./test/e2e/e2e_test.go is the only test that needs to be excluded because it is the E2E test suite that depends on a functional cluster. --- hack/make-rules/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh index 33e8c311dc7..d58bc929752 100755 --- a/hack/make-rules/test.sh +++ b/hack/make-rules/test.sh @@ -44,7 +44,7 @@ kube::test::find_dirs() { -o -path './output/*' \ -o -path './release/*' \ -o -path './target/*' \ - -o -path './test/e2e/*' \ + -o -path './test/e2e/e2e_test.go' \ -o -path './test/e2e_node/*' \ -o -path './test/e2e_kubeadm/*' \ -o -path './test/integration/*' \