selftest: Add a 'LABDC' testenv to mimic a preproduction test-bed
authorTim Beale <timbeale@catalyst.net.nz>
Fri, 6 Jul 2018 03:59:31 +0000 (15:59 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Jul 2018 02:42:10 +0000 (04:42 +0200)
commit7b70637e9ffab2a99e7d0d4df95409b1f411b93b
tree64e67791c3edbc9641c585294f1d7fc6c325af58
parent6a154fc5328d1746490172e07dff497ae1ce8563
selftest: Add a 'LABDC' testenv to mimic a preproduction test-bed

One of the use-cases for the domain rename tool is to produce a lab
domain that can be used for pre-production testing of Samba.
Basically this involves taking a backup rename with --no-secrets (which
scrubs any sensitive info), and then restoring it.

This patch adds a testenv that mimics how a user would go about creating
a lab-domain. We run the same tests that we run against the restore and
rename testenvs.

Note that the rpc.echo tests for the testallowed and testdenied users
fail, because we don't backup the secrets for these users. So these
tests failing proves that the lab-DC testenv is correct.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/knownfail.d/labdc [new file with mode: 0644]
selftest/target/Samba.pm
selftest/target/Samba4.pm
source4/selftest/tests.py