-
Notifications
You must be signed in to change notification settings - Fork 301
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 checking for firewall source ranges in l4_test #1810
Add checking for firewall source ranges in l4_test #1810
Conversation
/assign kl52752 |
pkg/loadbalancers/l4_test.go
Outdated
return verifyFirewall(l4, nodeNames, fwName, fwDesc) | ||
sourceRanges, err := servicehelper.GetLoadBalancerSourceRanges(l4.Service) | ||
if err != nil { | ||
return fmt.Errorf("servicehelper.GetLoadBalancerSourceRanges(%v) returned error %v, want nil", l4.Service, err) |
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.
you can add %+v for l4.Service to print fields also, but maybe only namespace name of the service is needed here?
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, added printing fields
I like being more "verbose" in test, especially on errors, so for me printing whole service is not that bad :)
e01eb74
to
549e37f
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kl52752, panslava 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 |
Instead of checking that len(firewall.SourceRanges) != 0 check that it actually has expected ranges