git.samba.org
/
mdw
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64b4fbc
)
ldb: Also test the new GUID index mode
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 25 Aug 2017 03:34:31 +0000
(15:34 +1200)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 22 Sep 2017 19:20:23 +0000
(21:20 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/ldb/tests/python/api.py
patch
|
blob
|
history
diff --git
a/lib/ldb/tests/python/api.py
b/lib/ldb/tests/python/api.py
index 1db2c5ca003820757748e80d063a30f3dbf34515..cc707edab3eec35436f703344e33d1774ee3fa34 100755
(executable)
--- a/
lib/ldb/tests/python/api.py
+++ b/
lib/ldb/tests/python/api.py
@@
-934,6
+934,17
@@
class IndexedSearchTests(SearchTests):
"@IDXATTR": [b"x", b"y", b"ou"],
"@IDXONE": [b"1"]})
+class GUIDIndexedSearchTests(SearchTests):
+ """Test searches using the index, to ensure the index doesn't
+ break things"""
+ def setUp(self):
+ super(GUIDIndexedSearchTests, self).setUp()
+ self.l.add({"dn": "@INDEXLIST",
+ "@IDXATTR": [b"x", b"y", b"ou"],
+ "@IDXONE": [b"1"],
+ "@IDXGUID": [b"objectUUID"],
+ "@IDX_DN_GUID": [b"GUID"]})
+
class DnTests(TestCase):