mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
659147b2e2
Python < 2.7.9 does not have the ssl.SSLContext attribute.
ssl.SSLContext is only required when we want to validate the SSL
connection. If `validate_certs` is false, we don't initialize the
`ssl_context` variable.
Add unit-test coverage and a little refactoring:
- avoid the use of `mocker`, when we can push `monkeypatch` which is
`pytest`'s default.
- use `mock.Mocker()` when possible
closes: #57072
(cherry picked from commit
|
5 years ago | |
---|---|---|
.. | ||
cli | 6 years ago | |
compat | 6 years ago | |
config | 6 years ago | |
contrib | 6 years ago | |
errors | 6 years ago | |
executor | 5 years ago | |
inventory_test_data/group_vars | 10 years ago | |
mock | 6 years ago | |
module_utils | 5 years ago | |
modules | 5 years ago | |
parsing | 5 years ago | |
playbook | 6 years ago | |
plugins | 5 years ago | |
regex | 6 years ago | |
template | 6 years ago | |
utils | 6 years ago | |
vars | 6 years ago | |
__init__.py | 8 years ago | |
ansible.cfg | 7 years ago | |
conftest.py | 6 years ago | |
test_constants.py | 8 years ago | |
test_context.py | 6 years ago |