diff --git a/roles/xmpp_server/molecule/default/tests/test_default.py b/roles/xmpp_server/molecule/default/tests/test_default.py index 344633973a43e6c183651404c63012cf5712b7de..d2c12d490cd3f4ef1d6cb2705d7df39f88bbbc75 100644 --- a/roles/xmpp_server/molecule/default/tests/test_default.py +++ b/roles/xmpp_server/molecule/default/tests/test_default.py @@ -272,6 +272,18 @@ def test_lua_ldap_pin_and_version(host): assert backports_version_suffix in lua_ldap.version +def test_prosody_configuration_validity(host): + """ + Tests the Prosody configuration file using the 'prosodyctl check' + command. + """ + + with host.sudo(): + check_config = host.run("prosodyctl check config") + + assert check_config.rc == 0, check_config.stdout + + # @TODO: Tests which were not implemented due to lack of out-of-box tools: # # - Proxy capability.