kubernetes/pkg/api/testing
Patrick Ohly 62d21589ef api test: update TestDefaulting
Logging and sub-tests were added to help debug this problem:
the test passes for ResourceClaim (same defaulting!) and fails
for the list, but only if run together with the other test cases?!

    $ go test ./pkg/api/testing
    --- FAIL: TestDefaulting (1.76s)
        --- FAIL: TestDefaulting/resource.k8s.io/v1alpha3,_Kind=ResourceClaimList (0.01s)
            defaulting_test.go:238: expected resource.k8s.io/v1alpha3, Kind=ResourceClaimList to trigger defaulting due to fuzzing
    FAIL
    FAIL	k8s.io/kubernetes/pkg/api/testing	17.294s
    FAIL
    $ go test -run=TestDefaulting/resource.k8s.io/v1alpha3,_Kind=ResourceClaimList ./pkg/api/testing
    ok  	k8s.io/kubernetes/pkg/api/testing	0.062s

What fixed that problem was increasing the likelihood of generating the right
test object by iterating more often before giving up.
2024-07-21 17:28:14 +02:00
..
compat hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
applyconfiguration_test.go Remove ClusterName 2022-05-05 20:12:50 +00:00
backward_compatibility_test.go Implement pod deletion cost 2021-03-01 13:45:58 -05:00
conversion.go pkg/api: Fix golint errors 2018-09-07 12:31:25 +05:30
conversion_test.go replace ioutil with io and os for pkg/api 2021-10-30 14:49:09 +08:00
copy_test.go Replace apimachinery diff.StringDiff with cmp 2023-04-12 08:45:31 -07:00
deep_copy_test.go Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
defaulting_test.go api test: update TestDefaulting 2024-07-21 17:28:14 +02:00
doc.go pkg/api: move *_test.go -> pkg/api/testing 2017-10-11 16:04:50 +02:00
fuzzer.go api: dynamic resource allocation API 2022-11-10 20:08:24 +01:00
install.go api: dynamic resource allocation API 2022-11-10 20:08:24 +01:00
meta_test.go Remove selflink references in api tests 2022-02-14 11:11:56 +01:00
node_example.json Avoid using Docker Engine as example for container runtime 2022-03-25 00:36:50 +00:00
OWNERS lavalamp is taking a long break 2023-05-11 16:43:38 +00:00
replication_controller_example.json Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
serialization_proto_test.go Change reflect.Ptr to reflect.Pointer 2022-06-26 01:23:43 +09:00
serialization_test.go use generic Set in api 2023-09-25 19:04:08 +08:00
unstructured_test.go Automatically transcode RawExtension between unstructured protocols. 2024-07-09 17:02:34 -04:00