mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 10:55:05 +00:00
* test: Uncomment tests for the policy validation feature and modify signatures Update the tests to call the method in the right convention it currently uses. And removing dependency on the github.com/kyverno/kyverno/pkg/openapi package which is no longer required for calling Validate. As well as updating the expected errors for the Test_ValidateJSON6902. Signed-off-by: aerosouund <aerosound161@gmail.com> * fix: Configure Test_ValidateNamespace to use ValidationFailureActionOverrides as an argument instead of the whole policy spec Signed-off-by: aerosouund <aerosound161@gmail.com> * refactor: Use newest method signatures with Validate by passing two empty usernames Signed-off-by: aerosouund <aerosound161@gmail.com> * test: Use stretchr testify and bring the test that was written in main to the suite Signed-off-by: aerosouund <aerosound161@gmail.com> --------- Signed-off-by: aerosouund <aerosound161@gmail.com> Signed-off-by: Ammar Yasser <aerosound161@gmail.com> Co-authored-by: Jim Bugwadia <jim@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> |
||
---|---|---|
.. | ||
cleanuppolicy | ||
exception | ||
globalcontext | ||
policy | ||
resource |