Changeset - 54275c753ea1
[Not reviewed]
0 3 0
Branko Majic (branko) - 4 years ago 2020-01-07 02:03:27
branko@majic.rs
MAR-148: Fixed tests for the xmpp_server role (newlines in command outputs/content).
3 files changed with 7 insertions and 7 deletions:
0 comments (0 inline, 0 general)
roles/xmpp_server/molecule/default/tests/test_default.py
Show inline comments
 
@@ -37,7 +37,7 @@ def test_prosody_repository(host):
 
    repository = host.file("/etc/apt/sources.list.d/packages_prosody_im_debian.list")
 

	
 
    distribution_release = host.ansible("setup")["ansible_facts"]["ansible_distribution_release"]
 
    expected_content = "deb http://packages.prosody.im/debian %s main" % distribution_release
 
    expected_content = "deb http://packages.prosody.im/debian %s main\n" % distribution_release
 

	
 
    assert repository.is_file
 
    assert repository.user == 'root'
roles/xmpp_server/molecule/default/tests/test_mandatory.py
Show inline comments
 
@@ -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.domain1_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():
 

	
roles/xmpp_server/molecule/default/tests/test_optional.py
Show inline comments
 
@@ -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():
 

	
0 comments (0 inline, 0 general)