diff --git a/roles/xmpp_server/molecule/default/tests/test_optional.py b/roles/xmpp_server/molecule/default/tests/test_optional.py index 3ad420b14e2701f7fd67c301f83c3028b39ce69f..9b4012eaf7f6ed84f21b506921a09abe7825daec 100644 --- a/roles/xmpp_server/molecule/default/tests/test_optional.py +++ b/roles/xmpp_server/molecule/default/tests/test_optional.py @@ -13,7 +13,7 @@ def test_prosody_tls_files(host): correctly. """ - hostname = host.run('hostname').stdout + hostname = host.run('hostname').stdout.strip() with host.sudo(): @@ -38,7 +38,7 @@ def test_certificate_validity_check_configuration(host): correctly. """ - hostname = host.run('hostname').stdout + hostname = host.run('hostname').stdout.strip() config = host.file('/etc/check_certificate/%s_xmpp.conf' % hostname) assert config.is_file @@ -53,7 +53,7 @@ def test_prosody_configuration_file_content(host): Tests if Prosody configuration file has correct content. """ - hostname = host.run('hostname').stdout + hostname = host.run('hostname').stdout.strip() with host.sudo():