From dfda76d8965ddaa56cc780aeb7a59210143ffe87 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 11 Nov 2021 23:20:32 +0100 Subject: [PATCH] tests/e2e: use cached LDAP lookup for tests Signed-off-by: Jens Langhammer --- tests/e2e/test_provider_ldap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/test_provider_ldap.py b/tests/e2e/test_provider_ldap.py index 4d032e5fc..72d674767 100644 --- a/tests/e2e/test_provider_ldap.py +++ b/tests/e2e/test_provider_ldap.py @@ -14,7 +14,7 @@ from authentik.events.models import Event, EventAction from authentik.flows.models import Flow from authentik.outposts.managed import MANAGED_OUTPOST from authentik.outposts.models import Outpost, OutpostType -from authentik.providers.ldap.models import LDAPProvider +from authentik.providers.ldap.models import LDAPProvider, SearchModes from tests.e2e.utils import USER, SeleniumTestCase, apply_migration, object_manager, retry @@ -55,6 +55,7 @@ class TestProviderLDAP(SeleniumTestCase): name="ldap_provider", authorization_flow=Flow.objects.get(slug="default-authentication-flow"), search_group=Group.objects.first(), + search_mode=SearchModes.CACHED, ) # we need to create an application to actually access the ldap Application.objects.create(name="ldap", slug="ldap", provider=ldap)