summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2015-01-26 16:33:50 +0000
committerJan Cholasta <jcholast@redhat.com>2015-04-16 06:58:31 +0000
commitdb88498c956a608ab09168ecd70ec7d4d755d0b2 (patch)
treec5ddc0993a782ba8e28179e5037d009c3cae6d2b /ipatests
parentcbb112dd57940cdb128dd5535f0ff3a826009641 (diff)
downloadfreeipa-db88498c956a608ab09168ecd70ec7d4d755d0b2.tar.gz
freeipa-db88498c956a608ab09168ecd70ec7d4d755d0b2.tar.xz
freeipa-db88498c956a608ab09168ecd70ec7d4d755d0b2.zip
ldap: Move schema handling from IPASimpleLDAPObject to LDAPClient
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_xmlrpc/test_baseldap_plugin.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/ipatests/test_xmlrpc/test_baseldap_plugin.py b/ipatests/test_xmlrpc/test_baseldap_plugin.py
index 3ffc041f9..6b19e57c1 100644
--- a/ipatests/test_xmlrpc/test_baseldap_plugin.py
+++ b/ipatests/test_xmlrpc/test_baseldap_plugin.py
@@ -181,17 +181,12 @@ def test_entry_to_dict():
elif name == 'dnattr':
return FakeAttributeType(name, '1.3.6.1.4.1.1466.115.121.1.12')
- class FakeIPASimpleLDAPObject(ipaldap.IPASimpleLDAPObject):
- def __init__(self):
- super(FakeIPASimpleLDAPObject, self).__init__('ldap://test', False)
- self._schema = FakeSchema()
- self._has_schema = True
-
class FakeLDAPClient(ipaldap.LDAPClient):
def __init__(self):
super(FakeLDAPClient, self).__init__('ldap://test',
force_schema_updates=False)
- self._conn = FakeIPASimpleLDAPObject()
+ self._has_schema = True
+ self._schema = FakeSchema()
conn = FakeLDAPClient()
rights = {'nothing': 'is'}