From 83d2c442a5a26454d4142f04e1dae067ebd21297 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 18 Jul 2021 22:43:35 +0200 Subject: [PATCH] tests/e2e: fix ldap tests Signed-off-by: Jens Langhammer --- tests/e2e/test_provider_ldap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/test_provider_ldap.py b/tests/e2e/test_provider_ldap.py index 36de96c22..cc20fb3d4 100644 --- a/tests/e2e/test_provider_ldap.py +++ b/tests/e2e/test_provider_ldap.py @@ -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(