1
0
Fork 0
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:
Ammar Yasser 2024-09-05 00:38:03 +03:00 committed by GitHub
parent 468de6ceba
commit b78c501b1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

File diff suppressed because it is too large Load diff