mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
selftest: Run samba-tool domain demote while we have a clone of the DB handy
This avoids needing to run the demote on the main replicated DB of the selftest system Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
1f88353713
commit
097435cfd9
@ -162,6 +162,11 @@ class SambaToolDrsTests(samba.tests.BlackboxTestCase):
|
||||
# The clone should pretend to be the source server
|
||||
self.assertEqual(ds_name, server_ds_name)
|
||||
self.assertEqual(ldap_service_name, server_ldap_service_name)
|
||||
|
||||
# While we have this cloned, try demoting the other server on the clone
|
||||
out = self.check_output("samba-tool domain demote --remove-other-dead-server=%s -H %s/private/sam.ldb"
|
||||
% (self.dc2,
|
||||
self.tempdir))
|
||||
shutil.rmtree(os.path.join(self.tempdir, "private"))
|
||||
shutil.rmtree(os.path.join(self.tempdir, "etc"))
|
||||
shutil.rmtree(os.path.join(self.tempdir, "msg.lock"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user