Changeset - 5e0412b723f0
[Not reviewed]
0 2 0
Branko Majic (branko) - 5 years ago 2020-01-07 00:42:23
branko@majic.rs
MAR-148: Fixed tests for the web_server role (newline handling for hostname).
2 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
roles/web_server/molecule/default/tests/test_mandatory.py
Show inline comments
 
@@ -12,7 +12,7 @@ def test_nginx_tls_files(host):
 
    Tests if TLS private key and certificate have been deployed correctly.
 
    """
 

	
 
    hostname = host.run('hostname').stdout
 
    hostname = host.run('hostname').stdout.strip()
 

	
 
    with host.sudo():
 

	
 
@@ -37,7 +37,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_https.conf' % hostname)
 
    assert config.is_file
roles/web_server/molecule/default/tests/test_optional.py
Show inline comments
 
@@ -12,7 +12,7 @@ def test_nginx_tls_files(host):
 
    Tests if TLS private key and certificate have been deployed correctly.
 
    """
 

	
 
    hostname = host.run('hostname').stdout
 
    hostname = host.run('hostname').stdout.strip()
 

	
 
    with host.sudo():
 

	
 
@@ -37,7 +37,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_https.conf' % hostname)
 
    assert config.is_file
0 comments (0 inline, 0 general)