Skip to content

Commit

Permalink
systemtests: add checks for failed backups
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri authored and pstorz committed Oct 25, 2022
1 parent 2ea20bb commit 5f22886
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion systemtests/tests/checkpoints/testrunner-checkpoints-on-kill
Expand Up @@ -100,8 +100,13 @@ END_OF_DATA

run_bconsole

# Check that the backup was halted
expect_not_grep "Termination:.*Backup OK" \
"$backup_log"\
"Backup was run successfully. The backup should fail."

# Check that the restore works fine
expect_grep "Termination: Restore OK" \
expect_grep "Termination:.*Restore OK" \
"$restore_log" \
"Restore job did not go well!"

Expand Down
5 changes: 5 additions & 0 deletions systemtests/tests/checkpoints/testrunner-checkpoints-on-stop
Expand Up @@ -86,6 +86,11 @@ if [ "$NumberOfBackedUpFiles" -le 0 ]; then
estat=1
fi

# Check that the backup was halted
expect_not_grep "Termination:.*Backup OK" \
"$backup_log"\
"Backup was run successfully. The backup should fail."

# Check that the restore works fine
expect_grep "Termination: Restore OK" \
"$restore_log"\
Expand Down

0 comments on commit 5f22886

Please sign in to comment.