diff --git a/roles/mail_server/molecule/default/tests/test_mandatory.py b/roles/mail_server/molecule/default/tests/test_mandatory.py index 5f93602e03456878893608d414cf053f557aeb78..a2de012ed40728d88e5442ce9e49c8c19d8df603 100644 --- a/roles/mail_server/molecule/default/tests/test_mandatory.py +++ b/roles/mail_server/molecule/default/tests/test_mandatory.py @@ -110,20 +110,6 @@ def test_mail_owner(host): assert user.groups == ["vmail"] -def test_imap_tls_connectivity(host): - """ - Tests connectivity over STARTTLS/TLS towards IMAP server. - """ - - starttls = host.run('echo "a0001 LOGOUT" | openssl s_client -quiet -starttls imap -connect parameters-mandatory:143') - assert starttls.rc == 0 - assert '* BYE Logging out' in starttls.stdout - - tls = host.run('echo "a0001 LOGOUT" | openssl s_client -quiet -connect parameters-mandatory:993') - assert tls.rc == 0 - assert '* BYE Logging out' in starttls.stdout - - @pytest.mark.parametrize("port", [ 143, 993, @@ -194,21 +180,6 @@ def test_imap_max_user_connections_per_ip(host): assert " mail_max_userip_connections = 10" in config.stdout -def test_smtp_tls_connectivity(host): - """ - Tests connectivity over default/submission port towards SMTP - server. - """ - - starttls = host.run('echo "QUIT" | openssl s_client -quiet -starttls smtp -connect parameters-mandatory:25') - assert starttls.rc == 0 - assert '221 2.0.0 Bye' in starttls.stdout - - tls = host.run('echo "QUIT" | openssl s_client -quiet -starttls smtp -connect parameters-mandatory:587') - assert tls.rc == 0 - assert '221 2.0.0 Bye' in starttls.stdout - - def test_smtp_default_port_tls_version_and_ciphers(host): """ Tests TLS configuration for SMTP default port (needs to be less