sources/ldap: use openldap tests for entire sync

This commit is contained in:
Jens Langhammer
2021-02-05 14:29:22 +01:00
parent 9c1ade59e9
commit 478d3430eb
4 changed files with 104 additions and 35 deletions

View File

@ -28,7 +28,7 @@ def mock_slapd_connection(password: str) -> Connection:
{
"name": "test-group",
"uid": "unique-test-group",
"objectClass": "group",
"objectClass": "groupOfNames",
"member": ["cn=user0,ou=users,dc=goauthentik,dc=io"],
},
)
@ -37,7 +37,7 @@ def mock_slapd_connection(password: str) -> Connection:
"cn=group2,ou=groups,dc=goauthentik,dc=io",
{
"name": "test-group",
"objectClass": "group",
"objectClass": "groupOfNames",
},
)
connection.strategy.add_entry(