-
-
Notifications
You must be signed in to change notification settings - Fork 884
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 the .verify
property correctly
#1202
Conversation
jira/client.py
Outdated
@@ -3403,6 +3395,13 @@ def _add_client_cert_to_session(self): | |||
client_cert: Tuple[str, str] = self._options["client_cert"] # to help mypy | |||
self._session.cert = client_cert | |||
|
|||
def _add_ssl_cert_to_session(self): | |||
""" | |||
Adds the client certificate to the request if configured through the constructor. |
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.
Is this adding the client certificate, or the certificate authority?
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, this was a copy paste job I failed to update. I've now updated both the name of the function and improved the docstring for clarity.
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 would maybe look for adding a test for this... this has the potential to break a lot :-) and probably will sneak through CI without a proper test :-S. I wouldn't know how to test it though :-D
Yeah I have no idea how to test this, really the |
:-) see it as a challenge :D you have my approval... |
😆 |
* add the `.verify` property correctly * remove duplicated line updating the cookies of the session * update docstrings and function name for clarity * update client `__init__` docstring, as that is actually public
Addressed the concerns raised by #339
http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification
pip install git+https://github.com/pycontribs/jira.git@bugfix/correctly_add_ssl_cert