mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ldb: Also test the new GUID index mode
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
64b4fbc613
commit
24c71ed211
@ -934,6 +934,17 @@ class IndexedSearchTests(SearchTests):
|
|||||||
"@IDXATTR": [b"x", b"y", b"ou"],
|
"@IDXATTR": [b"x", b"y", b"ou"],
|
||||||
"@IDXONE": [b"1"]})
|
"@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):
|
class DnTests(TestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user