summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2020-02-12 16:28:01 +1300
committerKarolin Seeger <kseeger@samba.org>2020-02-25 19:32:28 +0000
commitf83104fbfc4ae4bfd2b37f398bf591474aa64c49 (patch)
tree01422708165de267c253cc26bd7d55f26a9d6389 /lib
parent81bdcf9ee4e26e7b9d40b26c2195cb6f7a786d80 (diff)
downloadsamba-f83104fbfc4ae4bfd2b37f398bf591474aa64c49.tar.gz
ldb: Add tests aimed at the SCOPE_ONELEVEL bug in particular
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14270 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 0b8ab0200805127e36eeb2affe561f3aee59604a)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/ldb/tests/python/api.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ldb/tests/python/api.py b/lib/ldb/tests/python/api.py
index a7c1f359529..1d3d765e607 100755
--- a/lib/ldb/tests/python/api.py
+++ b/lib/ldb/tests/python/api.py
@@ -1462,6 +1462,14 @@ class SearchTests(LdbBaseTest):
expression="(ou=unique)")
self.assertEqual(len(res11), 0)
+ def test_onelevel_unique_elsewhere4(self):
+ """Testing a search (showing that onelevel is not subtree)"""
+
+ res11 = self.l.search(base="DC=SAMBA,DC=ORG",
+ scope=ldb.SCOPE_ONELEVEL,
+ expression="(ou=unique)")
+ self.assertEqual(len(res11), 0)
+
def test_onelevel_unique_elsewhere5(self):
"""Testing a search (showing that onelevel is not subtree)"""