mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
tests/drs_base: Allow the net drs replicate to try with a single object
This eventually passes down the replicate single object exop. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13269 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
19fcd872ec
commit
ff9e63f976
@ -120,7 +120,8 @@ class DrsBaseTestCase(SambaToolCmdTest):
|
||||
# bin/samba-tool drs <drs_command> <cmdline_auth>
|
||||
return ["drs", drs_command, cmdline_auth]
|
||||
|
||||
def _net_drs_replicate(self, DC, fromDC, nc_dn=None, forced=True, local=False, full_sync=False):
|
||||
def _net_drs_replicate(self, DC, fromDC, nc_dn=None, forced=True,
|
||||
local=False, full_sync=False, single=False):
|
||||
if nc_dn is None:
|
||||
nc_dn = self.domain_dn
|
||||
# make base command line
|
||||
@ -134,6 +135,8 @@ class DrsBaseTestCase(SambaToolCmdTest):
|
||||
samba_tool_cmdline += ["--local"]
|
||||
if full_sync:
|
||||
samba_tool_cmdline += ["--full-sync"]
|
||||
if single:
|
||||
samba_tool_cmdline += ["--single-object"]
|
||||
|
||||
(result, out, err) = self.runsubcmd(*samba_tool_cmdline)
|
||||
self.assertCmdSuccess(result, out, err)
|
||||
|
Loading…
Reference in New Issue
Block a user