-
Notifications
You must be signed in to change notification settings - Fork 618
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
Add Test for getting bool from service annotation #2410
Add Test for getting bool from service annotation #2410
Conversation
Hi @FavourEva. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/approve Looks good, let's see if tests pass. |
The code seems to still be formatted incorrectly. You should be able to check that before submitting running |
/retest |
/retest Error's unrelated. |
/retest |
1 similar comment
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dulek The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1f9a6d4
to
85bb100
Compare
/assign |
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.
Your test looks good. Thanks!
If you have a bit more time, have another look at the production code. Do you see something strange? In particular: do you think logging could be improved?
/lgtm |
The production code currently do not log errors when an invalid annotation is encountered in the annotation. We could add error logging when the annotation is neither true or false to improve robustness. This would also help in debugging issues where annotation value is unexpected. Is this what you see strange in the production code? or there's something else @pierreprinetti |
85bb100
to
695456d
Compare
/lgtm |
Just fixed that. Thanks |
This is precisely what I saw. If a non-boolean annotation is found, we log "Found a service annotation:" and then the default setting, which is not what happened. Do you want to fix that? |
Sure, would fix that right away. Thanks |
What this PR does / why we need it:
Add unit test for getting bool from service annotation
Special notes for reviewers:
To run the test, on your terminal run
make unit
Release note: