summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Beale <timbeale@catalyst.net.nz>2018-11-20 17:15:41 +1300
committerAndrew Bartlett <abartlet@samba.org>2018-11-23 05:00:22 +0100
commitb8ff4a0881bd6a12ba43ece27b8d3d9e5750b81f (patch)
treeeda41f42e8aadeb609c8fe6e8ed5f3abb0ba8fa4 /source4
parent6f48bc840c11c0d4cfbd6b7eada15cc69218ca0f (diff)
downloadsamba-b8ff4a0881bd6a12ba43ece27b8d3d9e5750b81f.tar.gz
tests: Add better error for DRS tests
We've got a flappy test hitting this assertion failure, but we can't tell why it's failing intermittently (probably because we're bumping the RID-Set, but there's no way to confirm this). Add some extra debug info if the test assertion fails. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/drs/python/drs_base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/drs/python/drs_base.py b/source4/torture/drs/python/drs_base.py
index 2e8598d529b..77abd439794 100644
--- a/source4/torture/drs/python/drs_base.py
+++ b/source4/torture/drs/python/drs_base.py
@@ -384,15 +384,15 @@ class DrsBaseTestCase(SambaToolCmdTest):
"""
Check that a ctr6 matches the specified parameters.
"""
- self.assertEqual(ctr6.object_count, len(expected_dns))
+ ctr6_dns = self._get_ctr6_dn_list(ctr6)
+ self.assertEqual(ctr6.object_count, len(expected_dns),
+ "Received unexpected objects (%s)" % ctr6_dns)
self.assertEqual(ctr6.linked_attributes_count, len(expected_links))
self.assertEqual(ctr6.more_data, more_data)
self.assertEqual(ctr6.nc_object_count, nc_object_count)
self.assertEqual(ctr6.nc_linked_attributes_count, nc_linked_attributes_count)
self.assertEqual(ctr6.drs_error[0], drs_error)
- ctr6_dns = self._get_ctr6_dn_list(ctr6)
-
i = 0
for dn in expected_dns:
# Expect them back in the exact same order as specified.