]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb: Add tests aimed at the SCOPE_ONELEVEL bug in particular
authorAndrew Bartlett <abartlet@samba.org>
Wed, 12 Feb 2020 03:28:01 +0000 (16:28 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 25 Feb 2020 10:38:34 +0000 (10:38 +0000)
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>
lib/ldb/tests/python/api.py

index a7c1f35952926eebe243187bc8447d4f00494088..1d3d765e607478da6c9e1058af1dd41cc15df946 100755 (executable)
@@ -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)"""