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 4cfc296885 getncchanges.py: Add a new test for replication
This adds a new test to check that if objects are modified during a
replication, then those objects don't wind up missing from the
replication data.

Note that when this scenario occurs, samba returns the objects in a
different order to Windows. This test doesn't care what order the
replicated objects get returned in, so long as they all have been
received by the end of the test.

As part of this, I've refactored _check_replication() in drs_base.py so
it can be reused in new tests. In these cases, the objects are split up
over multiple different chunks. So asserting that the objects are returned
in a specific order makes it difficult to run the same test on both Samba
and Windows.

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 a new test for replication 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 a new test for replication 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