File diff ea2565a624f1 → 35140b3eb5b8
roles/backup_client/molecule/default/tests/test_default.py
Show inline comments
 
@@ -173,7 +173,7 @@ def test_cron_entry(host):
 
    assert cron.user == 'root'
 
    assert cron.group == 'root'
 
    assert cron.mode == 0o644
 
    assert cron.content_string == "#Ansible: backup\n0 2 * * * root /usr/bin/duply main backup\n"
 
    assert cron.content_string == "#Ansible: backup\n0 2 * * * root /usr/bin/duply main pre_and_bkp && /usr/bin/duply main post_and_purge --force\n"
 

	
 

	
 
def test_duply_include_file(host):
 
@@ -202,7 +202,7 @@ def test_backup_and_restore(host):
 
        # Remove this file so we can be sure the pre-backup script has been run.
 
        host.ansible("file", "path=/var/lib/pre-backup-test state=absent")
 

	
 
        backup_run = host.run('duply main backup')
 
        backup_run = host.run('duply main pre_and_bkp')
 

	
 
        assert backup_run.rc == 0
 
        assert host.file('/var/lib/pre-backup-test').is_file