From: Stefan Metzmacher Date: Fri, 12 Jan 2018 13:52:45 +0000 (+0100) Subject: s4:torture/samba_tool_drs: demote the test dc at the end of test_samba_tool_replicate... X-Git-Tag: samba-4.8.0rc1~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6678f33274d4f1784635cd11fc63d9d32a9f9b16;p=thirdparty%2Fsamba.git s4:torture/samba_tool_drs: demote the test dc at the end of test_samba_tool_replicate_local() Otherwise this taints other tests which might follow. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source4/torture/drs/python/samba_tool_drs.py b/source4/torture/drs/python/samba_tool_drs.py index 477529d45c8..669f9e1e85f 100644 --- a/source4/torture/drs/python/samba_tool_drs.py +++ b/source4/torture/drs/python/samba_tool_drs.py @@ -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."""