-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 client port config override #65
Conversation
ribbon-pull-requests #58 SUCCESS |
shouldUseOverridePort = true; | ||
|
||
}else{ | ||
logger.warn("%s set to force client port but no secure port is set, so ignoring", clientName); |
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.
I don't think "%s" works here. Should be "{}".
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.
My bad. I have a bunch of these -- I'll just replace it with string concat.
An alternative solution would be adding this logic to DiscoveryEnabledNIWSServerList.obtainServersViaDiscovery(). This will enable us to solve both internal and external requirements in one place. |
I like this idea -- I'll go ahead and put the logic there. |
ribbon-pull-requests #60 SUCCESS |
ribbon-pull-requests #61 SUCCESS |
*/ | ||
@RunWith(PowerMockRunner.class) | ||
@PrepareForTest( {DiscoveryManager.class, DiscoveryClient.class} ) | ||
@PowerMockIgnore("javax.management.*") |
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.
why is that necessary?
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.
Thanks for taking the extra step to mock out the Discovery APIs! |
Add client port config override
I will also let this propagate through the ecosystem before referencing the new enum in other packages.
This can be a temporary feature until completion of Netflix/eureka#71