1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/source4/torture/drs/python
Tim Beale 9f0ae6e44d getncchanges.py: Add GET_ANC replication test case
This test:
- creates blocks of parent/child objects
- modifies the parents, so the child gets received first in the
  replication (which means the client has to use GET_ANC)
- checks that we always receive the parent before the child (if not, it
  either retries with GET_ANC, or asserts if GET_ANC is already set)
- modifies the parent objects to change their USN while the
  replication is in progress
- checks that all expected objects are received by the end of the
  test

I've added a repl_get_next() function to help simulate a client's
behaviour - if it encounters an object it doesn't know the parent of,
then it retries with GET_ANC.

Also added some debug to drs_base.py that developers can turn on to make
it easier to see what objects we're actually receiving in the
responses.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12972
2017-08-18 06:07:12 +02:00
..
cracknames.py python/tests: add python test for cracknames 2017-07-24 07:14:10 +02:00
delete_object.py selftest: Disable all replication during most replication tests 2016-07-19 13:41:11 +02:00
drs_base.py getncchanges.py: Add GET_ANC replication test case 2017-08-18 06:07:12 +02:00
fsmo.py selftest: Use get_creds_ccache_name() in fsmo.py 2017-07-28 00:25:14 +02:00
getnc_exop.py getnc_exop.py: Fix typo in function name 2017-07-28 00:25:15 +02:00
getncchanges.py getncchanges.py: Add GET_ANC replication test case 2017-08-18 06:07:12 +02:00
linked_attributes_drs.py torture/drs: move ExopBaseTest into DrsBaseTest and extend 2016-12-21 00:47:24 +01:00
repl_move.py selftest: Disable all replication during most replication tests 2016-07-19 13:41:11 +02:00
repl_rodc.py tests/repl_rodc: Test the direct allow/deny attribute works 2017-03-13 05:10:12 +01:00
repl_schema.py dsdb: Ensure replication of renames works in schema partition 2017-06-15 01:24:25 +02:00
replica_sync.py selftest: Use self.runsubcmd() in DrsReplicaSyncTestCase 2017-07-28 00:25:14 +02:00
ridalloc_exop.py selftest: Remove unused import in ridalloc_exop.py 2017-07-28 00:25:14 +02:00
samba_tool_drs.py python/tests: improve samba-tool replicate --local test 2017-02-15 01:21:05 +01:00