tests: Tweak the backup online tests so they're generic
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 3 Jul 2018 01:43:29 +0000 (13:43 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 5 Jul 2018 02:01:25 +0000 (04:01 +0200)
commitcd727c95a288995686cf4300b9a069ccf76b8e46
treee0d3b3611c82bc6eb24f47ffc56712ec031d9028
parent850bba4d329d062c8a79824c0a9987fa51340e2b
tests: Tweak the backup online tests so they're generic

Update backup-online tests to be more generic. We can then re-use the
common framework for other types of backups (offline, rename), and just
change what's specific to those particular cases.

This change includes asserting the restored backup's domain/realm are
correct, which we weren't doing previously but makes sense.

The new 'return samdb' is for convenience, so that child classes can
easily extend the checks we run over the restored DB.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/domain_backup.py