ansible: test that modern TLS works

Closes #4471.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
Tim D. Smith 2016-09-03 11:13:18 -07:00
parent f2b7124374
commit 79228cd6ec

View file

@ -536,5 +536,9 @@ class Ansible < Formula
EOF
(testpath/"hosts.ini").write "localhost ansible_connection=local\n"
system bin/"ansible-playbook", testpath/"playbook.yml", "-i", testpath/"hosts.ini"
# Ensure requests[security] is activated
script = "import requests as r; r.get('https://mozilla-modern.badssl.com')"
system libexec/"bin/python", "-c", script
end
end