mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:drs:tests: repeat getncchanges test with zero reserved_usn
This emulates the behaviour of Azure AD. As this is quite slow we will later reduce the test load in this case, but for now we want to run all the getncchanges tests this way. 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:
parent
796e92a530
commit
67c7609ab7
@ -6,3 +6,12 @@ samba4.drs.getncchanges.python\(promoted_dc\).getncchanges.DrsReplicaSyncIntegri
|
|||||||
samba4.drs.getncchanges.python\(promoted_dc\).getncchanges.DrsReplicaSyncIntegrityTestCase.test_repl_get_tgt_multivalued_links\(promoted_dc\)
|
samba4.drs.getncchanges.python\(promoted_dc\).getncchanges.DrsReplicaSyncIntegrityTestCase.test_repl_get_tgt_multivalued_links\(promoted_dc\)
|
||||||
# Samba chooses to always increment the USN for the NC root at the point where it would otherwise show up.
|
# Samba chooses to always increment the USN for the NC root at the point where it would otherwise show up.
|
||||||
samba4.drs.getncchanges.python\(.*\).getncchanges.DrsReplicaSyncIntegrityTestCase.test_repl_nc_is_first_nc_change_only\(
|
samba4.drs.getncchanges.python\(.*\).getncchanges.DrsReplicaSyncIntegrityTestCase.test_repl_nc_is_first_nc_change_only\(
|
||||||
|
|
||||||
|
# These failures are repeated in the tests where the client forces
|
||||||
|
# reserved_usn to zero, emulating Azure AD. DrsReplicaSyncFakeAzureAdTests
|
||||||
|
samba4.drs.getncchanges.python\(promoted_dc\).getncchanges.DrsReplicaSyncFakeAzureAdTests.test_repl_get_tgt\(promoted_dc\)
|
||||||
|
samba4.drs.getncchanges.python\(promoted_dc\).getncchanges.DrsReplicaSyncFakeAzureAdTests.test_repl_get_tgt_chain\(promoted_dc\)
|
||||||
|
samba4.drs.getncchanges.python\(promoted_dc\).getncchanges.DrsReplicaSyncFakeAzureAdTests.test_repl_get_tgt_and_anc\(promoted_dc\)
|
||||||
|
samba4.drs.getncchanges.python\(promoted_dc\).getncchanges.DrsReplicaSyncFakeAzureAdTests.test_repl_get_tgt_multivalued_links\(promoted_dc\)
|
||||||
|
# Samba chooses to always increment the USN for the NC root at the point where it would otherwise show up.
|
||||||
|
samba4.drs.getncchanges.python\(.*\).getncchanges.DrsReplicaSyncFakeAzureAdTests.test_repl_nc_is_first_nc_change_only\(
|
||||||
|
5
selftest/knownfail.d/getncchanges-azure-ad
Normal file
5
selftest/knownfail.d/getncchanges-azure-ad
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
^samba4.drs.getncchanges.python\(vampire_dc\).getncchanges.DrsReplicaSyncFakeAzureAdTests.test_repl_get_tgt_multivalued_links\(vampire_dc\)
|
||||||
|
^samba4.drs.getncchanges.python\(vampire_dc\).getncchanges.DrsReplicaSyncFakeAzureAdTests.test_repl_integrity\(vampire_dc\)
|
||||||
|
^samba4.drs.getncchanges.python\(vampire_dc\).getncchanges.DrsReplicaSyncFakeAzureAdTests.test_repl_integrity_link_attr\(vampire_dc\)
|
||||||
|
^samba4.drs.getncchanges.python\(promoted_dc\).getncchanges.DrsReplicaSyncFakeAzureAdTests.test_repl_integrity\(promoted_dc\)
|
||||||
|
^samba4.drs.getncchanges.python\(promoted_dc\).getncchanges.DrsReplicaSyncFakeAzureAdTests.test_repl_integrity_link_attr\(promoted_dc\)
|
@ -1421,6 +1421,18 @@ class DrsReplicaSyncIntegrityTestCase(drs_base.DrsBaseTestCase):
|
|||||||
# The NC should not be present in this replication
|
# The NC should not be present in this replication
|
||||||
self._test_repl_nc_is_first(start_at_zero=False, nc_change=False, ou_change=False)
|
self._test_repl_nc_is_first(start_at_zero=False, nc_change=False, ou_change=False)
|
||||||
|
|
||||||
|
|
||||||
|
class DrsReplicaSyncFakeAzureAdTests(DrsReplicaSyncIntegrityTestCase):
|
||||||
|
"""This repeats all of DrsReplicaSyncIntegrityTestCase, but the client
|
||||||
|
always sets highwatermark.reserved_usn = 0. This is what Azure AD
|
||||||
|
/ Entra ID Connect does.
|
||||||
|
"""
|
||||||
|
@staticmethod
|
||||||
|
def modify_highwatermark(hwm):
|
||||||
|
if hwm is not None:
|
||||||
|
hwm.reserved_usn = 0
|
||||||
|
|
||||||
|
|
||||||
class DcConnection:
|
class DcConnection:
|
||||||
"""Helper class to track a connection to another DC"""
|
"""Helper class to track a connection to another DC"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user