Skip to content
Snippets Groups Projects
Commit 98a6d4b2 authored by nimrod's avatar nimrod
Browse files

- Move DH params test from Testinfra to post_tasks to workaround a limitation...

- Move DH params test from Testinfra to post_tasks to workaround a limitation when running tests with Docker.
parent 1d6f497b
No related branches found
No related tags found
No related merge requests found
......@@ -5,3 +5,13 @@
- hosts: all
roles: [ ca-store ]
post_tasks:
- name: Get DH params bit count
dhparams:
path: /etc/ssl/dhparams.pem
register: ca_store_test_dhparams
- name: Verify high bit count DH params
assert:
that:
- ca_store_test_dhparams.bits >= 2048
......@@ -49,12 +49,6 @@ def test_update_ca_certificates(File, Ansible, Command, Sudo,
assert Command(filename).rc == 0
def test_dh_params(File, Ansible):
assert File('/etc/ssl/dhparams.pem').is_file
assert int(Ansible('dhparams', 'path=/etc/ssl/dhparams.pem')[
"bits"]) >= 2048
def test_snakeoil_cert(File):
assert File('/etc/ssl/certs/ssl-cert-snakeoil.pem').is_file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment