mirror of
https://github.com/samba-team/samba.git
synced 2025-09-09 01:44:21 +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:
@@ -120,7 +120,8 @@ class DrsBaseTestCase(SambaToolCmdTest):
|
|||||||
# bin/samba-tool drs <drs_command> <cmdline_auth>
|
# bin/samba-tool drs <drs_command> <cmdline_auth>
|
||||||
return ["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:
|
if nc_dn is None:
|
||||||
nc_dn = self.domain_dn
|
nc_dn = self.domain_dn
|
||||||
# make base command line
|
# make base command line
|
||||||
@@ -134,6 +135,8 @@ class DrsBaseTestCase(SambaToolCmdTest):
|
|||||||
samba_tool_cmdline += ["--local"]
|
samba_tool_cmdline += ["--local"]
|
||||||
if full_sync:
|
if full_sync:
|
||||||
samba_tool_cmdline += ["--full-sync"]
|
samba_tool_cmdline += ["--full-sync"]
|
||||||
|
if single:
|
||||||
|
samba_tool_cmdline += ["--single-object"]
|
||||||
|
|
||||||
(result, out, err) = self.runsubcmd(*samba_tool_cmdline)
|
(result, out, err) = self.runsubcmd(*samba_tool_cmdline)
|
||||||
self.assertCmdSuccess(result, out, err)
|
self.assertCmdSuccess(result, out, err)
|
||||||
|
Reference in New Issue
Block a user