selftest: Add testenv for testing backup/restore
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 29 May 2018 04:05:02 +0000 (16:05 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 3 Jul 2018 08:39:14 +0000 (10:39 +0200)
commitccba77a9d8ead63acee11b15e1ca5f70afe168ad
tree8fd16ebb8b5a0216de1efcc91a57323c1b83fc5c
parent70b73f3ca6c3dc5425d224a826135dae6b536b11
selftest: Add testenv for testing backup/restore

This adds a new testenv for testing that a DC created using the
samba-tool backup/restore can actually be started up. This actually
requires 2 new testenvs:

1. A 'backupfromdc' that solely exists to make a online backup of.
2. A 'restoredc' which takes the backup, and then uses the backup file
to do a restore, which we then start the DC based on.

The backupfromdc is just a plain vanilla AD DC. We use a separate test
env purely for this purpose, because the restoredc will use the same
domain (and so using an existing testenv would potentially interfere
with existing test cases).

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