Changeset - 852083ff2843
[Not reviewed]
0 1 0
Branko Majic (branko) - 3 years ago 2021-01-12 22:58:48
branko@majic.rs
MAR-163: Use host.run shell escaping in a test.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
roles/mail_server/molecule/default/tests/test_default.py
Show inline comments
 
@@ -72,7 +72,7 @@ def test_clamav_milter(host):
 

	
 
    eicar = 'X5O!P%@AP[4\\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*'
 

	
 
    send_mail = host.run("swaks --to john.doe@domain1 --server localhost --attach '%s'" % eicar)
 
    send_mail = host.run("swaks --to john.doe@domain1 --server localhost --attach %s", eicar)
 

	
 
    assert send_mail.rc == server_did_not_accept_mail
 
    assert 'Your message has been rejected due to a possible virus' in send_mail.stdout
0 comments (0 inline, 0 general)