Raise test coverage in task_validation.go and container_validation.go.#8714
Conversation
|
The following is the coverage report on the affected files.
|
|
/kind test |
|
@waveywaves: The label(s) DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/test check-pr-has-kind-label |
|
@twoGiants: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/ok-to-test |
53daa11 to
107fc7d
Compare
task_validation.go and container_validation.go. 🚧 task_validation.go and container_validation.go.
|
The following is the coverage report on the affected files.
|
|
/cc @waveywaves This one is ready for review. It's small and improves test coverage. Thank you for the review! 😸 |
Add test for checking duplicate names of steps and a success test when the `enable-artifacts` is not enabled. This raises the test coverage of container_validation.go to 100%. Replace `ErrInvalidValue` with `ErrMultipleOneOf` like in the pipeline validation tests for duplicate tasks. Add a test for checking of object params without properties and using an object param in step environment variable value where it is forbidden. Signed-off-by: Stanislav Jakuschevskij <stas@two-giants.com>
107fc7d to
a4fe739
Compare
|
/ok-to-test Added one more test now that the logic changed. We're back to 100% coverage for |
|
The following is the coverage report on the affected files.
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester, waveywaves The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
Changes
Add test for checking duplicate names of steps and a success test when the
enable-artifactsfeature flag is not enabled. This raises the test coverage ofcontainer_validation.goto 100%. ReplaceErrInvalidValuewithErrMultipleOneOflike in the pipeline validation tests for duplicate tasks.Add a test for checking of object params without properties and using an object param in step environment variable value where it is forbidden which raises the coverage of
task_validation.goto 99.1%.Issue #8700.
/kind cleanup
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes