Commit graph

7 commits

Author SHA1 Message Date
Yongrui Lin
fd8870da09 batch: add declarative validation tests for toleration key
Job and CronJob; prefixed and unprefixed keys.
2026-06-11 06:35:35 +00:00
Yongrui Lin
d1c82cbeb2 Regenerate validation code and protobuf for toleration migration
Output of hack/update-codegen.sh.
2026-06-11 06:35:28 +00:00
Yongrui Lin
33565abba4 address feedback: make Job test fixture explicit about both-set case
Removes BackoffLimitPerIndex/MaxFailedIndexes defaults from validJobSpec
and adds tweakMaxFailedIndexes. Test cases now pass both tweaks
explicitly, matching cronjob's style — the truth table is visible at
the test case rather than hidden in the fixture.
2026-06-08 21:58:29 +00:00
Yongrui Lin
724809a4bc Regenerate batch generated code 2026-06-08 21:58:29 +00:00
Yongrui Lin
3c1f8c4fbc Add declarative validation tests for MaxFailedIndexes dependency
Adds a parity test for Job (new test/declarative_validation/batch/job
directory) and a case under cronjob exercising the
spec.jobTemplate.spec.backoffLimitPerIndex path.
2026-06-08 21:58:29 +00:00
Yongrui Lin
e35569096e Rename validation-gen test fixtures to zz_generated.validations.* prefix
Mechanical rename to match the new --test-output-file-prefix value;
file contents are unchanged.
2026-05-12 20:31:33 +00:00
Yongrui Lin
a791288d81 test/declarative_validation: migrate DV equivalence tests to new tree
Move the existing declarative_validation_test.go files out of
pkg/registry/ into a top-level tree at
test/declarative_validation/<group>/<kind>/. The new location pairs
each hand-written test with the per-Kind TestMain and version-init
files emitted by validation-gen, so the coverage gate runs alongside
the equivalence checks and apiVersions no longer needs to be
hand-maintained.
2026-05-09 19:11:01 +00:00