diff --git a/roles/mail_server/molecule/default/tests/test_optional.py b/roles/mail_server/molecule/default/tests/test_optional.py index 4fd6e1eda3f02fb88b4079c58ada9d42d58b6874..405fa457e7a34347e023125e10f74d66519ba1b1 100644 --- a/roles/mail_server/molecule/default/tests/test_optional.py +++ b/roles/mail_server/molecule/default/tests/test_optional.py @@ -14,29 +14,6 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('parameters-optional') -def test_certificate_validity_check_configuration(host): - """ - Tests if certificate validity check configuration file has been deployed - correctly. - """ - - hostname = host.run('hostname').stdout.strip() - - config = host.file('/etc/check_certificate/%s_smtp.conf' % hostname) - assert config.is_file - assert config.user == 'root' - assert config.group == 'root' - assert config.mode == 0o644 - assert config.content_string == "/etc/ssl/certs/%s_smtp.pem" % hostname - - config = host.file('/etc/check_certificate/%s_imap.conf' % hostname) - assert config.is_file - assert config.user == 'root' - assert config.group == 'root' - assert config.mode == 0o644 - assert config.content_string == "/etc/ssl/certs/%s_imap.pem" % hostname - - def test_mailname_file_content(host): """ Tests the system mail name file content.