diff options
author | Andrew Bartlett <abartlet@samba.org> | 2020-02-12 16:28:01 +1300 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-02-26 08:51:32 +0000 |
commit | 17c43b99622f518bd816e26ae9885cd48918f0a9 (patch) | |
tree | 5784ca64eb12504766f010b364650032dc549796 /lib/ldb/tests/python/api.py | |
parent | b81fd260ebb76f135c6e68b052fdcf61e4142a2e (diff) | |
download | samba-17c43b99622f518bd816e26ae9885cd48918f0a9.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/ldb/tests/python/api.py')
-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)""" |