mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
test: Uncomment tests for the policy validation feature and modify signatures (#10784)
* 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>
This commit is contained in:
parent
468de6ceba
commit
b78c501b1b
1 changed files with 3293 additions and 3354 deletions
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue