add header corruption tests
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Thu, 10 Aug 2017 15:01:42 +0000 (17:01 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:09 +0000 (13:34 +0200)
commit00b8c150153165ff5eeb8eaee3c65160df8baefd
treee0ffe81e2649b81336208068f344afd4fa52a6aa
parent96fe639921bd468e6dcd0534252da58417af68f6
add header corruption tests

We hit them where it hurts:

    * for compressed backups, flip a bit in the magic;
    * for encrypted backups, flip a bit in the tag.

In either case, normal restore must fail, and disaster recovery
will be incomplete.
runtests.py
testing/test_recover.py