getncchanges.py: Add test for GET_ANC and linked attributes
commit0bb4d28272914736a46dc5cdb0bef766ba7a4ab8
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 11 Jul 2017 22:16:00 +0000 (12 10:16 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 18 Aug 2017 04:07:12 +0000 (18 06:07 +0200)
tree294a97c0a8c74ff2ca5725cf04879cefcdaa0b95
parent9f0ae6e44d0f6def6be7c44067c7fcfdf0d42db2
getncchanges.py: Add test for GET_ANC and linked attributes

Add a basic test that when we use GET_ANC and the parents have linked
attributes, then we receive all the expected links and all the expected
objects by the end of the test.

This extends the test code to track what linked attributes get received
and check whether they match what's present on the DC.

Also made some minor cleanups to store the received objects/links each
time we successfully receive a GETNCChanges response (this saves the
test case having to repeat this code every time).

Note that although this test involves linked attributes, it shouldn't
exercise the GET_TGT case at all.

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
source4/torture/drs/python/drs_base.py
source4/torture/drs/python/getncchanges.py