From 5a5539da978ccce449eaefd0350407b01b661fff Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 24 Mar 2021 09:55:43 +0100 Subject: [PATCH] sources/saml: fix failing unittests Signed-off-by: Jens Langhammer --- authentik/sources/saml/tests/test_metadata.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/authentik/sources/saml/tests/test_metadata.py b/authentik/sources/saml/tests/test_metadata.py index 6a65ee4ed..95e1482db 100644 --- a/authentik/sources/saml/tests/test_metadata.py +++ b/authentik/sources/saml/tests/test_metadata.py @@ -40,6 +40,9 @@ class TestMetadataProcessor(TestCase): slug="provider", issuer="authentik", signing_kp=CertificateKeyPair.objects.first(), + pre_authentication_flow=Flow.objects.get( + slug="default-source-pre-authentication" + ), ) request = self.factory.get("/") xml = MetadataProcessor(source, request).build_entity_descriptor() @@ -51,7 +54,9 @@ class TestMetadataProcessor(TestCase): source = SAMLSource.objects.create( slug="provider", issuer="authentik", - # signing_kp=CertificateKeyPair.objects.first(), + pre_authentication_flow=Flow.objects.get( + slug="default-source-pre-authentication" + ), ) request = self.factory.get("/") xml = MetadataProcessor(source, request).build_entity_descriptor()