diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-07-13 13:05:19 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-07-13 12:51:05 +0200 |
commit | 2087eb1602d647a7b14523820834231f50dea79d (patch) | |
tree | 660826d9d52195800cf44f93f2429c21e5778a2b /source4/scripting/python/samba/tests | |
parent | c60a48948a75a6d300e31c2a2629daa4a48cbeb1 (diff) | |
download | samba-2087eb1602d647a7b14523820834231f50dea79d.tar.gz samba-2087eb1602d647a7b14523820834231f50dea79d.tar.xz samba-2087eb1602d647a7b14523820834231f50dea79d.zip |
ldb: use base searches for @ special DNs
subtree searches on these DNs don't work any more
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting/python/samba/tests')
-rw-r--r-- | source4/scripting/python/samba/tests/upgradeprovision.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source4/scripting/python/samba/tests/upgradeprovision.py b/source4/scripting/python/samba/tests/upgradeprovision.py index b81ee8a8ab..62ab1790bc 100644 --- a/source4/scripting/python/samba/tests/upgradeprovision.py +++ b/source4/scripting/python/samba/tests/upgradeprovision.py @@ -27,7 +27,7 @@ from samba.upgradehelpers import (usn_in_range, dn_sort, from samba.tests.provision import create_dummy_secretsdb from samba.tests import TestCaseInTempDir from samba import Ldb -from ldb import SCOPE_SUBTREE +from ldb import SCOPE_BASE import samba.tests def dummymessage(a=None, b=None): @@ -123,10 +123,8 @@ class UpdateSecretsTests(samba.tests.TestCaseInTempDir): def test_update_modules(self): empty_db = self._getEmptyDb() update_secrets(self.referencedb, empty_db, dummymessage) - newmodules = empty_db.search( - expression="dn=@MODULES", base="", scope=SCOPE_SUBTREE) - refmodules = self.referencedb.search( - expression="dn=@MODULES", base="", scope=SCOPE_SUBTREE) + newmodules = empty_db.search(base="@MODULES", scope=SCOPE_BASE) + refmodules = self.referencedb.search(base="@MODULES", scope=SCOPE_BASE) self.assertEquals(newmodules.msgs, refmodules.msgs) def tearDown(self): |