diff --git a/roles/xmpp_server/molecule/default/tests/test_optional.py b/roles/xmpp_server/molecule/default/tests/test_optional.py index 195126335bb21c5b5085a9528d3f59a53d68322d..2c342a76115510e8903f5342d699aedc32b66ec7 100644 --- a/roles/xmpp_server/molecule/default/tests/test_optional.py +++ b/roles/xmpp_server/molecule/default/tests/test_optional.py @@ -7,31 +7,6 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('parameters-optional') -def test_prosody_tls_files(host): - """ - Tests if Prosody TLS private key and certificage have been deployed - correctly. - """ - - hostname = host.run('hostname').stdout.strip() - - with host.sudo(): - - tls_file = host.file('/etc/ssl/private/%s_xmpp.key' % hostname) - assert tls_file.is_file - assert tls_file.user == 'root' - assert tls_file.group == 'prosody' - assert tls_file.mode == 0o640 - assert tls_file.content_string == open("tests/data/x509/parameters-optional_xmpp.key.pem", "r").read().rstrip() - - tls_file = host.file('/etc/ssl/certs/%s_xmpp.pem' % hostname) - assert tls_file.is_file - assert tls_file.user == 'root' - assert tls_file.group == 'root' - assert tls_file.mode == 0o644 - assert tls_file.content_string == open("tests/data/x509/parameters-optional_xmpp.cert.pem", "r").read().rstrip() - - def test_certificate_validity_check_configuration(host): """ Tests if certificate validity check configuration file has been deployed