tests/getnc_exop: Ensure that attribute list sorting is correct
authorBob Campbell <bobcampbell@catalyst.net.nz>
Mon, 22 Aug 2016 02:43:41 +0000 (14:43 +1200)
committerGarming Sam <garming@samba.org>
Thu, 25 Aug 2016 12:22:24 +0000 (14:22 +0200)
With a binary search, this can only be tested on 3+ elements.

Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>

Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Thu Aug 25 14:22:25 CEST 2016 on sn-devel-144

source4/torture/drs/python/getnc_exop.py

index 8224df1d10d55e89dbef28be44e5c47bb9cee6b6..d058e663121ae5eb1de44895642ef8a85b65a669 100644 (file)
@@ -422,7 +422,9 @@ class DrsReplicaPrefixMapTestCase(drs_base.DrsBaseTestCase, ExopBaseTest):
         pfm.mappings = tmp
 
         # 90 for unicodePwd (with new prefix = 0)
-        partial_attribute_set = self.get_partial_attribute_set([90])
+        # 589824, 589827 for objectClass and CN
+        # Use of three ensures sorting is correct
+        partial_attribute_set = self.get_partial_attribute_set([90, 589824, 589827])
         req8 = self._exop_req8(dest_dsa=None,
                                invocation_id=dc_guid_1,
                                nc_dn_str=self.user,