selftest: Add some tests for linked attribute conflicts
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 23 Aug 2017 00:45:09 +0000 (12:45 +1200)
committerGarming Sam <garming@samba.org>
Mon, 18 Sep 2017 07:56:41 +0000 (09:56 +0200)
commit1541c50b370e8695bf5c958cc41073d1552a3c52
tree9400317a9ebb06487ed286c5bec2e44d6c3c9567
parent46c1f7bdeee7330ffdf43edada032205d594567f
selftest: Add some tests for linked attribute conflicts

Currently we have tests that check we can resolve object conflicts, but
these don't test anything related to conflicting linked attributes.
This patch adds some basic tests that checks that Samba can resolve
conflicting linked attributes.

This highlights some problems with Samba, as the following tests
currently fail:
- test_conflict_single_valued_link: Samba currently can't resolve a
  conflicting targets for a single-valued linked attribute - the
  replication exits with an error.
- test_link_deletion_conflict: If 2 DCs add the same linked attribute,
  currently when they resolve this conflict the RMD_VERSION for the
  linked attribute incorrectly gets incremented. This means the version
  numbers get out of step and subsequent changes to the linked attribute
  can be dropped/ignored.
- test_full_sync_link_conflict: fails for the same reason as above.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Mon Sep 18 09:56:41 CEST 2017 on sn-devel-144
selftest/knownfail.d/link_conflicts [new file with mode: 0644]
source4/selftest/tests.py
source4/torture/drs/python/link_conflicts.py [new file with mode: 0644]