tests: Add new tests for backup-rename command
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 3 Jul 2018 01:55:53 +0000 (13:55 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 5 Jul 2018 02:01:26 +0000 (04:01 +0200)
commit62948a3099cbb6073f3e5e454eaaaadd134e3082
tree91e6649ad73d0661360558de13045b42a9c3c03c
parent20568e00e68631cf7b514024ba2926fd8c73c8e1
tests: Add new tests for backup-rename command

Extend the existing 'backup online' tests to also test the domain
rename case. This mostly involves some extra assertions that the
restored DB has been modified appropriatelt (i.e. domain NetBIOS
name is updated, etc).

I've also added an extra test case that creates a few objects and
links and specifically asserts that they get renamed appropriately.

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