diff options
author | Andrew Bartlett <abartlet@samba.org> | 2020-02-12 16:28:01 +1300 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-02-25 10:38:34 +0000 |
commit | 0b8ab0200805127e36eeb2affe561f3aee59604a (patch) | |
tree | c5e8a228a22b1a7d2ee01a7d69f6b57af51a9d9f | |
parent | 3c7261c43da491b57f50e0e64d7050d85c6b973e (diff) | |
download | samba-0b8ab0200805127e36eeb2affe561f3aee59604a.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>
-rwxr-xr-x | lib/ldb/tests/python/api.py | 8 |
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)""" |