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.
ansible/test
Gonéri Le Bouder 659147b2e2 VMware: not ssl.SSLContext if validate_certs false (#57185)
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 3ea8e0a144)
5 years ago
..
cache
env
integration [stable-2.8] test: disable the docker swarm tests (#61816) (#61862) 5 years ago
legacy
results
runner [stable-2.8] Use new version of default test image that contains Python 3.8.0b3 (#60139) 5 years ago
sanity
units VMware: not ssl.SSLContext if validate_certs false (#57185) 5 years ago
utils