In this commit, we introduce unit tests for the `MutatingAdmission` webhook specifically for the `Work` resource. The mutation webhook tests include the following: - Handles decode errors and denies admission when decoding fails. - Provides full coverage of policy mutation, including setting default and validating no unnecessary patches. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> |
||
|---|---|---|
| .. | ||
| mutating.go | ||
| mutating_test.go | ||