diff options
author | Tim Beale <timbeale@catalyst.net.nz> | 2017-06-06 18:06:22 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-08-18 06:07:12 +0200 |
commit | 4cfc29688584ca69c43abb770d1e721d1eab1480 (patch) | |
tree | 25632e3355393747076e48aba025b89bdc17ab80 /source4/selftest/tests.py | |
parent | fae5df891c11f642cbede9e4e3d845c49c5f86b8 (diff) | |
download | samba-4cfc29688584ca69c43abb770d1e721d1eab1480.tar.gz |
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
Diffstat (limited to 'source4/selftest/tests.py')
-rwxr-xr-x | source4/selftest/tests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 5e54f6fc8bc..215257388b2 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -866,6 +866,16 @@ for env in ['vampire_dc', 'promoted_dc', 'vampire_2000_dc']: environ={'DC1': "$DC_SERVER", 'DC2': '$%s_SERVER' % env.upper()}, extra_args=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD']) +# A side-effect of the getncchanges tests is that they will create hundreds of +# tombstone objects, so run them last to avoid interferring with (and slowing +# down) the other DRS tests +for env in ['vampire_dc', 'promoted_dc']: + planoldpythontestsuite(env, "getncchanges", + extra_path=[os.path.join(samba4srcdir, 'torture/drs/python')], + name="samba4.drs.getncchanges.python(%s)" % env, + environ={'DC1': "$DC_SERVER", 'DC2': '$%s_SERVER' % env.upper()}, + extra_args=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD']) + for env in ['ad_dc_ntvfs']: planoldpythontestsuite(env, "repl_rodc", extra_path=[os.path.join(samba4srcdir, 'torture/drs/python')], |