summaryrefslogtreecommitdiffstats
path: root/tests/test_backend_ldap.py
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2013-02-21 11:09:57 -0500
committerAdam Young <ayoung@redhat.com>2013-02-21 12:20:14 -0500
commit573437511f741cdd9163aefec028894354756365 (patch)
tree38655225520c957c9f426035798a80896f105cc8 /tests/test_backend_ldap.py
parentd32bae4a81f41062a86b6997712fab836f94d214 (diff)
downloadkeystone-573437511f741cdd9163aefec028894354756365.tar.gz
keystone-573437511f741cdd9163aefec028894354756365.tar.xz
keystone-573437511f741cdd9163aefec028894354756365.zip
Fix id_to_dn for creating objects
Only do the lookup if the scope is not ONELEVEL For ONELEVEL, there is no point in paying the price of the lookup. If the object is not found for scoped queries, return the top level DN so the object can be created. Bug 1131265 Change-Id: I1ca41bf87c3bdea30fbdf607b19192f37dd0bfd6
Diffstat (limited to 'tests/test_backend_ldap.py')
-rw-r--r--tests/test_backend_ldap.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/test_backend_ldap.py b/tests/test_backend_ldap.py
index d4e96884..72bc09a1 100644
--- a/tests/test_backend_ldap.py
+++ b/tests/test_backend_ldap.py
@@ -44,9 +44,6 @@ class LDAPIdentity(test.TestCase, test_backend.IdentityTests):
test.testsdir('test_overrides.conf'),
test.testsdir('backend_ldap.conf')])
clear_database()
- self.stubs.Set(ldap_common.BaseLdap, "_id_to_dn",
- lambda self, id: '%s=%s,%s' % (self.id_attr,
- str(id), self.tree_dn))
self.identity_api = identity_ldap.Identity()
self.load_fixtures(default_fixtures)