kubernetes/test/utils
Patrick Ohly 03e337cfb7 ktesting: support for synctest
A "sync test" runs the test inside a testing/synctest bubble. Time moves
forward in a deterministic fashion when all goroutines are blocked
waiting for time to progress. This simplifies testing concurrent behavior.

ktesting enables writing such tests with a new SyncTest method: it can start a
new sub-test (similar to Run) or turn an existing test (typically a top-level
Test<something>) into a sync test when no new name is given.

TContext.IsSyncTest can be used to check the mode of the current test, which
may be useful in common helper code.

TContext.Wait directly maps to synctest.Wait.

This new functionality is limited to tests which use an underlying testing.T
instance.
2025-10-28 21:05:56 +01:00
..
apiserver svm: set UID and RV on SSA patch to cause conflict on logical create 2024-07-18 17:19:11 -04:00
crd chore: depr. pointer pkg replacement for test/e2e and utils 2025-07-06 22:18:03 +02:00
fakedns integration test: webhook proxy behavior 2025-10-02 22:31:08 +00:00
format test: format unstructured as YAML 2025-10-02 16:07:48 +02:00
harness Generate and format files 2022-07-26 13:14:05 -04:00
hermeticpodcertificatesigner Pod Certificates: Basic implementation 2025-07-21 21:49:57 +00:00
image Bump images, dependencies and versions to go 1.25.3 and distroless iptables 2025-10-15 09:41:57 +02:00
junit hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
ktesting ktesting: support for synctest 2025-10-28 21:05:56 +01:00
kubeconfig svm: set UID and RV on SSA patch to cause conflict on logical create 2024-07-18 17:19:11 -04:00
localupcluster DRA integration: add upgrade/downgrade testing with local-up-cluster.sh 2025-07-15 12:54:40 +02:00
oidc Bump to mockery v3 2025-08-29 13:43:54 +02:00
admission_webhook.go Generate and format files 2022-07-26 13:14:05 -04:00
audit.go svm: set UID and RV on SSA patch to cause conflict on logical create 2024-07-18 17:19:11 -04:00
conditions.go Cleanup unused test functions - cont-ed 2024-07-17 16:22:11 +02:00
create_resources.go Cleanup unused test functions - cont-ed 2024-07-17 16:22:11 +02:00
delete_resources.go Cleanup unused test functions - cont-ed 2024-07-17 16:22:11 +02:00
density_utils.go Fix Go vet errors for master golang 2024-09-20 12:36:38 +05:30
deployment.go Fix Go vet errors for master golang 2024-09-20 12:36:38 +05:30
node.go e2e tests 2024-11-08 03:00:54 +00:00
paths.go Setup e2e_node to support testing on ARM64 2023-05-20 00:07:44 +00:00
pki_helpers.go update serial number to a valid non-zero number in ca certificate (#117791) 2023-05-09 06:34:08 -07:00
pod_store.go generated: run refactor 2020-02-07 18:16:47 -08:00
replicaset.go Cleanup unused test functions - cont-ed 2024-07-17 16:22:11 +02:00
runners.go test: remove usage of storage v1beta1 APIs 2025-10-27 10:12:25 +01:00
tmpdir.go io/ioutil has already been deprecated in golang 1.16, so replace all ioutil with io and os 2022-02-03 05:32:12 +08:00
update_resources.go Replace PollImmediate with PollUntilContextTimeout (#128147) 2024-11-07 14:57:29 +00:00