s4:torture/samba_tool_drs: demote the test dc at the end of test_samba_tool_replicate...
authorStefan Metzmacher <metze@samba.org>
Fri, 12 Jan 2018 13:52:45 +0000 (14:52 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 13 Jan 2018 16:37:06 +0000 (17:37 +0100)
Otherwise this taints other tests which might follow.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/drs/python/samba_tool_drs.py

index 477529d45c81e08c9c436ea1112c5b0046f4b94b..669f9e1e85f460fd41f2a59ffad13f43b92fa438 100644 (file)
@@ -264,6 +264,9 @@ class SambaToolDrsTests(drs_base.DrsBaseTestCase):
         self.assertEqual(obj_2, 0)
         self.assertEqual(link_2, 0)
 
+        self.check_output("samba-tool domain demote --remove-other-dead-server=%s -H ldap://%s %s -s %s"
+                          % (netbiosname, self.dc1, self.cmdline_creds, new_dc_config_file))
+
     def test_samba_tool_replicate_machine_creds_P(self):
         """Tests 'samba-tool drs replicate -P' command with machine creds."""