-
Notifications
You must be signed in to change notification settings - Fork 184
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
fix: Removing extraneous space inserted during refactoring commit 894484a #3523
Conversation
I'm just wondering if we could add a test case for this? It seems an issue that can be detected by a sufficient test. |
Give me a couple of minutes, you're correct it should be testable. |
@mike-kingsbury - Thanks for the update. It looks good to me. @ahitacat, please have a look, if it is also good for you, I think we can merge and release it today. |
In that case it would fail with |
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.
Also it could be useful to add a check under test_get_no_proxy_rhsm
that tests when no_proxy
has values separated by comma and space.
with patch.dict(os_environ, {"HTTPS_PROXY": "env.proxy.example.com", "NO_PROXY": "example.com, redhat.com"}, clear=True):
connection.get_proxies()
assert connection.proxies == {'https': 'env.proxy.example.com'}
… Code was moved to a new function, and a space was added to the split. bz#2126155 Signed-off-by: Mike Kingsbury <[email protected]>
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.
This changes looks great and it can be merged. Thanks @mike-kingsbury for open and fix the bug.
- Removing extraneous space inserted during refactoring commit 894484a - Code was moved to a new function, and a space was added to the split. bz#2126155 Signed-off-by: Mike Kingsbury <[email protected]> (cherry picked from commit e942d79)
- Removing extraneous space inserted during refactoring commit 894484a - Code was moved to a new function, and a space was added to the split. bz#2126155 Signed-off-by: Mike Kingsbury <[email protected]>
… Code was moved to a new function, and a space was added to the split. bz#2126155
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
Reverting a change that introduced a space into a .split(','). The space broke the functionality of the Insights client when using NO_PROXY with multiple items.