kubernetes/test/conformance
Dave Chen 1b5d8b0b9b Fix the nil pointer dereference for comformance spec validation
`verify-conformance-yaml.sh` is used to verify the test spec of
conformance e2e test are valid.

Bascically, it calls `e2e.test` binary to dump the test spec and
then walk the source to generate the `conformance.yaml`.

If the `e2e.test` binary is outdated, it's possible that `testInfo`
is nil.

Access the field from nil will result to `nil pointer dereference`

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-04-02 16:53:39 +08:00
..
image 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
testdata Adjust testing for server-side validation as default 2022-03-28 04:11:27 +00:00
cf_header.md Update obsolete link in the Conformance Test doc 2021-08-11 15:11:41 +09:00
conformance_test.sh Update the conformance list and doc generation logic 2020-02-24 14:00:44 -08:00
doc.go Update the conformance list and doc generation logic 2020-02-24 14:00:44 -08:00
gen-conformance-docs.sh add test/conformance/gen-conformance-docs.sh 2021-02-28 13:01:07 -08:00
gen-conformance-yaml.sh port conformance yaml generation to hack 2021-02-28 00:54:54 -08:00
gen-specsummaries.sh don't run generated_files when generating specsummaries.json 2021-02-28 00:54:54 -08:00
OWNERS Prune stale entries from OWNERS files 2021-04-13 20:54:50 -04:00
README.md port conformance yaml generation to hack 2021-02-28 00:54:54 -08:00
spec-to-docs.sh nit: newlines 2021-02-28 13:04:21 -08:00
spec-to-yaml.sh nit: newlines 2021-02-28 13:04:21 -08:00
walk_test.go Remove KubeDescribe 2021-03-04 07:54:53 +01:00
walk.go Fix the nil pointer dereference for comformance spec validation 2022-04-02 16:53:39 +08:00

This directory contains the regression test for controlling the list of all conformance tests.

If you add or remove a conformance test, this test will fail and you will need to update the golden list of tests stored in testdata/. Changes to that file require review by sig-architecture.

To update the list, run hack/update-conformance-yaml.sh

Add the changed file to your PR, then send for review.