Changeset - 92217994cd0c
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2020-11-17 16:25:35
branko@majic.rs
MAR-173: Added test for checking Prosody configuration via its own built-in command.
1 file changed with 12 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/xmpp_server/molecule/default/tests/test_default.py
Show inline comments
 
@@ -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.
0 comments (0 inline, 0 general)