-
Notifications
You must be signed in to change notification settings - Fork 33
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
Webhook integration tests and clean up MatchCondition validation code #957
base: main
Are you sure you want to change the base?
Conversation
a550b03
to
6a28e18
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #957 +/- ##
==========================================
+ Coverage 67.35% 71.10% +3.74%
==========================================
Files 30 30
Lines 3128 3440 +312
==========================================
+ Hits 2107 2446 +339
+ Misses 852 836 -16
+ Partials 169 158 -11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
4b5c7cb
to
7d2da13
Compare
@fabriziosestito this is not exactly what I want to show you because I still have the new tests under the controller directory. But I could not finish the changes yet. Therefore, I'll leave it as it is now and continue next day. |
a40e45c
to
e234cf3
Compare
Move the factories used in tests to build our types to the policies/v1 package. Therefore, all the tests under /api and /internal/controller directories can use them. Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
015fd4a
to
35315b5
Compare
Adds tests to ensure that the function used by the webhooks server is calling the correct validation functions. Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
35315b5
to
533f54e
Compare
Moves the code from policy_validation_matchconditions.go file into policy_validation.go file, removing the unnecessary code. Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
Description
Adds tests to ensure that the function used by the webhooks server is calling the correct validation functions and moves the code from policy_validation_matchconditions.go file into policy_validation.go file, removing the unnecessary code.
Fix #824
Test
make test