diff options
author | Stefan Metzmacher <metze@samba.org> | 2016-07-28 08:29:39 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-07-28 10:06:11 +0200 |
commit | 47d9b0ed64a4e71c37782f5804bfe934e3b78358 (patch) | |
tree | 63cf38710ae2f78c114d37d301478cc47b9e0665 /python | |
parent | cba7e9452283794962080ff2e107a3f78f0ca1a9 (diff) | |
download | samba-47d9b0ed64a4e71c37782f5804bfe934e3b78358.tar.gz |
tests:samba_tool_drs: test samba-tool drs replicate with implicit machine credentials
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@samba.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/tests/blackbox/samba_tool_drs.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/python/samba/tests/blackbox/samba_tool_drs.py b/python/samba/tests/blackbox/samba_tool_drs.py index afaa4afb869..27d3885e6ce 100644 --- a/python/samba/tests/blackbox/samba_tool_drs.py +++ b/python/samba/tests/blackbox/samba_tool_drs.py @@ -137,7 +137,7 @@ class SambaToolDrsTests(samba.tests.BlackboxTestCase): self.assertTrue("Replicate from" in out) self.assertTrue("was successful" in out) - def test_samba_tool_replicate_machine_creds(self): + def test_samba_tool_replicate_machine_creds_P(self): """Tests 'samba-tool drs replicate -P' command with machine creds.""" # Output should be like 'Replicate from <DC-SRC> to <DC-DEST> was successful.' @@ -148,6 +148,17 @@ class SambaToolDrsTests(samba.tests.BlackboxTestCase): self.assertTrue("Replicate from" in out) self.assertTrue("was successful" in out) + def test_samba_tool_replicate_machine_creds(self): + """Tests 'samba-tool drs replicate' command with implicit machine creds.""" + + # Output should be like 'Replicate from <DC-SRC> to <DC-DEST> was successful.' + nc_name = self._get_rootDSE(self.dc1)["defaultNamingContext"] + out = self.check_output("samba-tool drs replicate %s %s %s" % (self.dc1, + self.dc2, + nc_name)) + self.assertTrue("Replicate from" in out) + self.assertTrue("was successful" in out) + def test_samba_tool_drs_clone_dc(self): """Tests 'samba-tool drs clone-dc-database' command.""" server_rootdse = self._get_rootDSE(self.dc1) |