-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate Test Cases #330
Validate Test Cases #330
Conversation
…olicies Signed-off-by: oshi36 <oshiagupta36@gmail.com>
…utate_policies
…icies Signed-off-by: oshi36 <oshiagupta36@gmail.com>
Signed-off-by: oshi36 <oshiagupta36@gmail.com>
Signed-off-by: oshi36 <oshiagupta36@gmail.com>
Signed-off-by: oshi36 <oshiagupta36@gmail.com>
@oshi36 a couple of things if you please:
Thank you! |
Sure @chipzoller, I will resolve the conflicts. |
Looks like tests are failing. |
Conflicts to resolve here. |
Signed-off-by: oshi36 <oshiagupta36@gmail.com>
…licies into test_validate_policies
@chipzoller, I have resolved merge conflicts and failed test cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, Oshi, this will be of tremendous help in testing future code for regressions. A few of these policies were copied and not moved, but I will clean these up.
Thank you @chipzoller for this.Looking forward to working more with your guidance. |
SignedOff-by : Oshi Gupta oshiagupta36@gmail.com
Related Issue(s)
Partially addresses #3121
Description
As a part of my LFX mentorship task, I am adding test cases and other manifests for the validate policies
Adding different validate policies for which I have added test cases :
Best-Practices Category
Note: the above is an updated policy for checking deprecation APIs and not the existing one in this policy repo.
Other Category
Trafeik Category
Also, I have moved policies in the folder so that they will not be duplicated in rendering to the website and added the
kyverno.io/kyverno-version: 1.6.2
andkyverno.io/kubernetes-version: "1.23"
in the polices where it was missing, after checking on the respective versions.Unique Ingress path policy for Other category has some issue with kyverno CLI , so its test cases are not added in this.
Checklist