tests/e2e: fix ldap tests

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-07-18 22:43:35 +02:00
parent 4029e19b72
commit 83d2c442a5
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ from ldap3 import (
Connection,
Server,
)
from ldap3.core.exceptions import LDAPInsufficientAccessRightsResult
from ldap3.core.exceptions import LDAPInvalidCredentialsResult
from authentik.core.models import Application, Group, User
from authentik.events.models import Event, EventAction
@ -131,7 +131,7 @@ class TestProviderLDAP(SeleniumTestCase):
user=f"cn={USER().username},ou=users,DC=ldap,DC=goauthentik,DC=io",
password=USER().username + "fqwerwqer",
)
with self.assertRaises(LDAPInsufficientAccessRightsResult):
with self.assertRaises(LDAPInvalidCredentialsResult):
_connection.bind()
anon = get_anonymous_user()
self.assertTrue(