tests: Add a sub-set of tests to show the restored DC is sound
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 21 Jun 2018 03:04:00 +0000 (15:04 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 3 Jul 2018 08:39:14 +0000 (10:39 +0200)
commit00d22122e5c0eb0c4e45c40b6a292628ab023f2d
treee6aac499551252309129ba62a50addff2b9b472c
parentccba77a9d8ead63acee11b15e1ca5f70afe168ad
tests: Add a sub-set of tests to show the restored DC is sound

+ Add a new ldapcmp_restoredc.sh test that asserts that the original DC
backed up (backupfromdc) matches the new restored DC.
+ Add a new join_ldapcmp.sh test that asserts we can join a given DC,
and that the resulting DB matches the joined DC
+ Add a new login_basics.py test that sanity-checks Kerberos and NTLM
user login works. (This reuses the password_lockout base code, without
taking as long as the password_lockout tests do). Basic LDAP and SAMR
connections are also tested as a side-effect.
+ run the netlogonsvc test against the restored DC to prove we can
establish a netlogon connection.
+ run the same subset of rpc.echo tests that we do for RODC
+ run dbcheck over the new testenvs at the end of the test run

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/dsdb/tests/python/login_basics.py [new file with mode: 0755]
source4/selftest/tests.py
testprogs/blackbox/join_ldapcmp.sh [new file with mode: 0755]
testprogs/blackbox/ldapcmp_restoredc.sh [new file with mode: 0755]