mirror of https://github.com/k3s-io/k3s
![]() 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. |
||
---|---|---|
.. | ||
BUILD | ||
OWNERS | ||
README.md | ||
apparmor.go | ||
crictl.go | ||
events.go | ||
framework.go | ||
kubelet.go | ||
kubelet_perf.go | ||
mount_propagation.go | ||
node_problem_detector.go | ||
pod_gc.go | ||
pods.go | ||
pre_stop.go | ||
security_context.go | ||
ssh.go | ||
ttlafterfinished.go |
README.md
WARNING: Do not add tests in this directory
There are two types of end-to-end tests in Kubernetes:
Tests located in ${KUBE_ROOT}/test/e2e/common
are shared by both Cluster
and Node E2E test jobs. Tests in ${KUBE_ROOT}/test/e2e_node
are exclusively
owned by Node E2E. If you want to add a test, most likely than not, you want
to add the test to one of the two directories mentioned above. If you are
unsure, please check with the OWNER of the directory. This directory currently
contains misplaced and legacy tests; they will be cleaned up in the future.