Commit dd6c5316 authored by Lorenz Steinert's avatar Lorenz Steinert

testing

parent 09f0e401
......@@ -16,17 +16,17 @@ class FsrLdapTest(unittest.TestCase):
"""setup for the tests"""
print(ldap.Server('test_server'))
self.test_ldap_server = esme.FsrLdap('test_server', 'dc=test,dc=de')
#conn = ldap.Connection(self.test_ldap_server.server, client_strategy=ldap.MOCK_SYNC)
#conn.strategy.add_entry('ou=people,'+self.test_ldap_server.base, {})
#conn.strategy.add_entry('ou=group,'+self.test_ldap_server.base, {})
#conn.strategy.add_entry('cn=intern,ou=group,'+self.test_ldap_server.base,
# {'memberUid': 'test1'})
#conn.strategy.add_entry('cn=extern,ou=group,'+self.test_ldap_server.base,
# {'memberUid': 'test2'})
#conn.strategy.add_entry('uid=test1,ou=people,'+self.test_ldap_server.base,
# {'displayName': 'test1, testing'})
#conn.strategy.add_entry('uid=test2,ou=people,'+self.test_ldap_server.base,
# {'displayName': 'test2, testing'})
conn = ldap.Connection(self.test_ldap_server.server, client_strategy=ldap.MOCK_SYNC)
conn.strategy.add_entry('ou=people,'+self.test_ldap_server.base, {})
conn.strategy.add_entry('ou=group,'+self.test_ldap_server.base, {})
conn.strategy.add_entry('cn=intern,ou=group,'+self.test_ldap_server.base,
{'memberUid': 'test1'})
conn.strategy.add_entry('cn=extern,ou=group,'+self.test_ldap_server.base,
{'memberUid': 'test2'})
conn.strategy.add_entry('uid=test1,ou=people,'+self.test_ldap_server.base,
{'displayName': 'test1, testing'})
conn.strategy.add_entry('uid=test2,ou=people,'+self.test_ldap_server.base,
{'displayName': 'test2, testing'})
os.mkdir("/tmp/python3-esme-testing")
open("/tmp/python3-esme-testing/fsr", 'a').close()
open("/tmp/python3-esme-testing/fsr_extern", 'a').close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment