1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:drs:tests: add hook for changing highwatermark

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15701

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <josutton@catalyst.net.nz>
This commit is contained in:
Douglas Bagnall 2024-08-09 10:16:29 +12:00 committed by Douglas Bagnall
parent 4b4a7c3fd4
commit 796e92a530

View File

@ -311,6 +311,13 @@ class DrsBaseTestCase(SambaToolCmdTest):
if drs_handle is None:
drs_handle = self.drs_handle
# Add a modify_highwatermark method to cause damage to the
# highwatermark. For example, it could set reserved_usn to
# zero as Entra ID does.
modify_hwm = getattr(self, "modify_highwatermark", None)
if modify_hwm is not None:
modify_hwm(highwatermark)
req10 = self._getnc_req10(dest_dsa=dest_dsa,
invocation_id=invocation_id,
nc_dn_str=nc_dn_str,