1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-29 10:55:05 +00:00
kyverno/pkg/validation
Ammar Yasser b78c501b1b
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>
2024-09-04 21:38:03 +00:00
..
cleanuppolicy remove wildcard permissions (#10785) 2024-08-20 11:55:32 +03:00
exception chore: use v2 clients for policy exceptions (#10530) 2024-06-24 16:36:55 +00:00
globalcontext feat: add global context entry validation webhook (#9619) 2024-02-02 18:04:50 +01:00
policy test: Uncomment tests for the policy validation feature and modify signatures (#10784) 2024-09-04 21:38:03 +00:00
resource feat: add support for days in ttl labels (#8660) 2023-10-16 13:01:07 +00:00