diff --git a/roles/backup_client/molecule/default/tests/test_default.py b/roles/backup_client/molecule/default/tests/test_default.py index 3c8ab73263e7253cfec484023539ccd633b65736..0659397c318963c813b27f3df10af41ea985b4ec 100644 --- a/roles/backup_client/molecule/default/tests/test_default.py +++ b/roles/backup_client/molecule/default/tests/test_default.py @@ -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