wyng-backup icon indicating copy to clipboard operation
wyng-backup copied to clipboard

Create automated tests

Open tasket opened this issue 6 years ago • 1 comments

A good testing regime could include the following:

  • Perform an initial backup
  • Verify volume
  • Perform an incremental backup
  • Verify volume
  • Prune first backup
  • Verify volume
  • Diff volume (cross-check with source vol data)

The main variables for creating test permutations:

  • Local storage: Thin LVM, Reflink
  • Dest storage: file:, ssh:, qubes:, qubes-ssh:
  • Security: Unencrypted, Encrypted

Other variables can be added as needed.

Fault tolerance:

Some methods for interfering with or damaging archives where there are expected recovery responses.


Changing program_name in the code could allow the test data set to be created under a different base folder name without interfering with real-life backup data.

tasket avatar Jan 04 '19 22:01 tasket

Other areas I recommend testing:

  1. Deliberately tamper with the archive, and check that the tampering is detected on restore.
  2. Attempt to roll back the archive to an earlier version, and test that this is detected.

DemiMarie avatar May 20 '24 21:05 DemiMarie