canaille-globuzma/tests/backends/ldap/test_configuration.py
Éloi Rivard 77667c6f52
refactor: all domains used in the unit test suite are now .test
this ensures they will never be valid, and will never generate real
world requests
2024-11-20 23:30:48 +01:00

12 lines
350 B
Python

import pytest
@pytest.fixture
def configuration(ldap_configuration):
ldap_configuration["CANAILLE_LDAP"]["USER_RDN"] = "mail"
yield ldap_configuration
def test_user_different_rdn(testclient, slapd_server, user):
output = slapd_server.slapcat().stdout.decode()
assert "dn: mail=john@doe.test,ou=users,dc=mydomain,dc=tld" in output