kubernetes/test/e2e/windows
Patrick Ohly 136f89dfc5 e2e: use error wrapping with %w
The recently introduced failure handling in ExpectNoError depends on error
wrapping: if an error prefix gets added with `fmt.Errorf("foo: %v", err)`, then
ExpectNoError cannot detect that the root cause is an assertion failure and
then will add another useless "unexpected error" prefix and will not dump the
additional failure information (currently the backtrace inside the E2E
framework).

Instead of manually deciding on a case-by-case basis where %w is needed, all
error wrapping was updated automatically with

    sed -i "s/fmt.Errorf\(.*\): '*\(%s\|%v\)'*\",\(.* err)\)/fmt.Errorf\1: %w\",\3/" $(git grep -l 'fmt.Errorf' test/e2e*)

This may be unnecessary in some cases, but it's not wrong.
2023-02-06 15:39:13 +01:00
..
cpu_limits.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
density.go e2e: replace WaitForPodToDisappear with WaitForPodNotFoundInNamespace 2023-02-06 15:39:12 +01:00
device_plugin.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
dns.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
framework.go update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
gmsa_full.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
gmsa_kubelet.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
host_process.go e2e: remove unused label filter from WaitForPodsRunningReady 2023-02-06 15:39:12 +01:00
hybrid_network.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
kubelet_stats.go e2e: remove unused label filter from WaitForPodsRunningReady 2023-02-06 15:39:12 +01:00
memory_limits.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
OWNERS chore: move chewong to emeritus_approvers 2022-07-27 03:08:28 +00:00
README.md Tag storage windows tests with [Feature:Windows] instead of [sig-windows] 2021-03-03 12:08:59 +01:00
reboot_node.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
security_context.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
service.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
utils.go Adding e2e test for running Windows hostprocess containers as members of a local usergroup 2022-10-21 17:17:44 -07:00
volumes.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00

Notes to run sig-windows tests

  1. Prereqs:
KUBECONFIG=path/to/kubeconfig
curl https://raw.githubusercontent.com/kubernetes-sigs/windows-testing/master/images/image-repo-list -o repo_list
export KUBE_TEST_REPO_LIST=$(pwd)/repo_list
  1. Run only sig-windows tests:

    ./e2e.test --provider=local --ginkgo.noColor --ginkgo.focus="\[sig-windows\]|\[Feature:Windows\]" --node-os-distro="windows"
    

e2e_node/density_test diff

This test is borrowed from the density test in e2e_node/density_test. All but the first test were omitted as well as some logging.