diff options
author | Dolph Mathews <dolph.mathews@gmail.com> | 2013-06-27 10:35:39 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2013-06-28 00:12:20 -0400 |
commit | 911c3156563c4e33bff3b4652b30c744f8b12de6 (patch) | |
tree | b51b11612bb735a51fe537b68430f3fd961ba850 /tests/test_backend_ldap.py | |
parent | 6c6d15ca8cc7376e0fff2d442b2cda8eebb324cf (diff) | |
download | keystone-911c3156563c4e33bff3b4652b30c744f8b12de6.tar.gz keystone-911c3156563c4e33bff3b4652b30c744f8b12de6.tar.xz keystone-911c3156563c4e33bff3b4652b30c744f8b12de6.zip |
Stop passing context to managers (bug 1194938)
We don't have a use case for passing the request context to the manager
layer, so this patch removes a bunch of cruft.
Change-Id: Ic6435782c4c9f32e38c7800172645cc1af23ea09
Diffstat (limited to 'tests/test_backend_ldap.py')
-rw-r--r-- | tests/test_backend_ldap.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_backend_ldap.py b/tests/test_backend_ldap.py index ba739082..7632cfb7 100644 --- a/tests/test_backend_ldap.py +++ b/tests/test_backend_ldap.py @@ -604,7 +604,7 @@ class LDAPIdentity(test.TestCase, test_backend.IdentityTests): 'password': 'no_meta2', 'enabled': True, } - self.identity_man.create_user({}, user['id'], user) + self.identity_man.create_user(user['id'], user) self.identity_api.add_user_to_project(self.tenant_baz['id'], user['id']) self.identity_api.user.LDAP_USER = None @@ -640,11 +640,10 @@ class LDAPIdentityEnabledEmulation(LDAPIdentity): 'password': 'no_meta2', 'enabled': True, } - self.identity_man.create_user({}, user['id'], user) + self.identity_man.create_user(user['id'], user) self.identity_api.add_user_to_project(self.tenant_baz['id'], user['id']) user_ref, tenant_ref, metadata_ref = self.identity_man.authenticate( - {}, user_id=user['id'], tenant_id=self.tenant_baz['id'], password=user['password']) @@ -692,7 +691,7 @@ class LDAPIdentityEnabledEmulation(LDAPIdentity): 'domain_id': CONF.identity.default_domain_id, 'name': uuid.uuid4().hex, 'password': uuid.uuid4().hex} - self.identity_man.create_user({}, user['id'], user) + self.identity_man.create_user(user['id'], user) user['enabled'] = True user_ref = self.identity_api.get_user(user['id']) del user['password'] |