From: Andrew Bartlett Date: Wed, 12 Feb 2020 03:28:01 +0000 (+1300) Subject: ldb: Add tests aimed at the SCOPE_ONELEVEL bug in particular X-Git-Tag: ldb-2.1.1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b8ab0200805127e36eeb2affe561f3aee59604a;p=thirdparty%2Fsamba.git 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 Reviewed-by: Stefan Metzmacher --- 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)"""