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
Maven - Add support for no-proxy & https proxy #1925
Conversation
setEnvCallBack := clientTestUtils.SetEnvWithCallbackAndAssert(t, utils.HttpProxyEnvKey, "http://login:pass@proxy.mydomain:8888") | ||
defer setEnvCallBack() | ||
// Set noProxy to match all to skip http proxy configuration | ||
setNoProxyEnvCallBack := clientTestUtils.SetEnvWithCallbackAndAssert(t, utils.NoProxyEnvKey, "*") |
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.
Would it work for "proxy.mydomain"? If so, let's use it instead of *
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.
No, "proxy.mydomain" is the actual proxy host. no-proxy
refers to the server that should avoid proxy redirects.
setHttpsEnvCallBack := clientTestUtils.SetEnvWithCallbackAndAssert(t, utils.HttpsProxyEnvKey, "https://logins:passw@proxys.mydomains:8889") | ||
defer setHttpsEnvCallBack() | ||
// Set noProxy to match all to skip https proxy configuration | ||
setNoProxyEnvCallBack := clientTestUtils.SetEnvWithCallbackAndAssert(t, utils.NoProxyEnvKey, "*") |
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.
Can we change here a concatenation of multiple no_host?
For example:
NO_PROXY="*.aventail.com,home.com,.seanet.com,proxys.mydomains"
Part of: