selftest: Don't run KCC on backup testenvs (to avoid flappiness)
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 5 Dec 2018 02:14:46 +0000 (15:14 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 6 Dec 2018 11:03:53 +0000 (12:03 +0100)
commitbd4bdced5ff310a5e5e3fe05ed491cf1826407d1
tree6b6c00e7ed80304e6e4318d3a3eb1986e595778a
parentd9e95849e3e09fd4dc40cf9c82030b033117ae98
selftest: Don't run KCC on backup testenvs (to avoid flappiness)

KCC onthe backup domain (i.e. backupfromdc, restoredc, offlinebackupdc)
can establish new connections for replication. Depending on timing,
this can cause the join_ldapcmp test to fail, because there's an extra
object under the NTDS Settings, at the point the ldapcmp is done.

We don't need any replication to happen on the backup domain. The
backup/restore workflow in the real world should mean that the restored DC
is never run in the same network as the original DC.

This patch updates the default KCC command for the backup testenvs to be
a no-op, so the DCs won't create new connection objects.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Dec  6 12:03:53 CET 2018 on sn-devel-144
selftest/target/Samba4.pm