-
Notifications
You must be signed in to change notification settings - Fork 609
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
[tests] Add unit tests for the loadbalancer.go functions #2400
Comments
/assign |
I am currently working on these functions: |
Working on getSecurityGroupName,GetLoadBalancerSourceRanges,getSubnetId |
@sakshi-1505: I think |
Ugh, I had created a PR already for that #2401. I will close the PR since I guess there is one already created but needs some more changes. |
@dulek I guess there are multiple PRs created, out of which none is merged but those Prs occupy 50% of the function listed above. Do you think there is some other level 2 task I can pick? I have already built devstack on my local machine as was suggested in the Outreachy guide before I jumped on picking these issues. |
I already open a PR for
|
And I am currently working on ‘Getloadbalancersourcerange’ |
@sakshi-1505: I'll try to find more functions that are lacking unit tests and allow writing tests fairly easily. The problem is that gophercloud is pretty hard to mock, so any functions actually making calls to OpenStack are problematic. @KingDaemonX: I think it'll be better to make sure some of the functions can be worked on by the rest of the participants. You've definitely already proven your dedication and golang proficiency. |
Okay! I will drop this “Getloadbalancersourcerange” that isn’t in the PR and look into some other stuff |
@dulek It's fine if there are not enough functions, I can try contributing to another issue.
How about we run a devstack & prefer to run integration tests for such functions instead of unit tests? |
Hello @dulek i'm currently working on |
I am working on checkListernerPorts, createLoadBalancerStatus, GetLBSourceRanges. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/kind feature
What happened:
The cloud-provider-openstack code most related to this project lives in loadbalancer.go which is lacking almost all unit tests. This task is to write tests for all of the functions there. Please note that it is untrivial to create tests for methods using gophercloud library, so calling the OpenStack APIs.
List of Tests:
The text was updated successfully, but these errors were encountered: