tests: Add getncchanges test for cross-partition links + TGT
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 1 Jul 2019 02:16:13 +0000 (14:16 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 2 Jul 2019 04:21:36 +0000 (04:21 +0000)
commitdba9987bf500f82fbbcda1cd78c543a87f90cec5
treecf078ff306eeeb203a3cbb7889a8c94b85509317
parent92f9f836abaf0fa85e6fd4fc08c2993c9a4af70b
tests: Add getncchanges test for cross-partition links + TGT

This adds a test-case to highlight a bug in the client side GetNCChanges
handling.

These tests mostly exercise the server-side behaviour of sending the
GetNCChanges, however, there's a bug in the client-side code when we try
to handle a missing cross-partition link target *in combination* with
the GET_TGT flag already having been set.

The test is exercising the client-side code by using the 'samba-tool drs
replicate' command. By adding a one-way link to a deleted target object,
we force the client code to retry with the GET_TGT flag set.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14022

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/knownfail.d/getncchanges
source4/torture/drs/python/getncchanges.py