sources/saml: fix failing unittests

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-24 09:55:43 +01:00
parent e12d99ba63
commit 5a5539da97
1 changed files with 6 additions and 1 deletions

View File

@ -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()