diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-06-08 13:37:49 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-06-11 11:44:07 +0200 |
commit | 29ff3ce56894d5ef0254c85d6ae9e68733558901 (patch) | |
tree | 7e4b52f789e62cb8a0a86dc6d0583d6785995f32 /source4/torture/drs/python/drs_base.py | |
parent | ba44bd353deb518608f235ddb5ddfc54f3a4c789 (diff) | |
download | samba-29ff3ce56894d5ef0254c85d6ae9e68733558901.tar.gz samba-29ff3ce56894d5ef0254c85d6ae9e68733558901.tar.bz2 samba-29ff3ce56894d5ef0254c85d6ae9e68733558901.zip |
s4-selftest: Test samba-tool drs replicate --local --full-sync
Diffstat (limited to 'source4/torture/drs/python/drs_base.py')
-rw-r--r-- | source4/torture/drs/python/drs_base.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/torture/drs/python/drs_base.py b/source4/torture/drs/python/drs_base.py index 8e48b92f7a..abfdbf5bd3 100644 --- a/source4/torture/drs/python/drs_base.py +++ b/source4/torture/drs/python/drs_base.py @@ -98,13 +98,17 @@ class DrsBaseTestCase(samba.tests.BlackboxTestCase): # bin/samba-tool drs <drs_command> <cmdline_auth> return "%s drs %s %s" % (samba_tool_cmd, drs_command, cmdline_auth) - def _net_drs_replicate(self, DC, fromDC, nc_dn=None, forced=True): + def _net_drs_replicate(self, DC, fromDC, nc_dn=None, forced=True, local=False, full_sync=False): if nc_dn is None: nc_dn = self.domain_dn # make base command line samba_tool_cmdline = self._samba_tool_cmdline("replicate") if forced: samba_tool_cmdline += " --sync-forced" + if local: + samba_tool_cmdline += " --local" + if full_sync: + samba_tool_cmdline += " --full-sync" # bin/samba-tool drs replicate <Dest_DC_NAME> <Src_DC_NAME> <Naming Context> cmd_line = "%s %s %s %s" % (samba_tool_cmdline, DC, fromDC, nc_dn) return self.check_output(cmd_line) |