From 0f76e3b48a117c78bb89298fabea22aedf454f12 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Mon, 11 Dec 2023 09:39:08 +0100 Subject: [PATCH] add eduPersonEntitlement attribute to tests --- src/auth_server/tests/test_saml_sp.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/auth_server/tests/test_saml_sp.py b/src/auth_server/tests/test_saml_sp.py index 28b5a4b..406dbc9 100644 --- a/src/auth_server/tests/test_saml_sp.py +++ b/src/auth_server/tests/test_saml_sp.py @@ -99,6 +99,9 @@ def setUp(self) -> None: surname="Testsson", targeted_id="https://idp.example.com/simplesaml/saml2/idp/metadata.php!http://test.localhost/saml2-metadata!398f4967ef4ec07985d93a9200d3891184b9c0f6c79db53280894ae75673eab8", unique_id="eppn@idp.example.com", + entitlement=[ + "urn:mace:swamid.se:example.com:role:member", + ], ), ) @@ -171,12 +174,15 @@ def setUp(self) -> None: testsson@example.com - + 398f4967ef4ec07985d93a9200d3891184b9c0f6c79db53280894ae75673eab8 + + urn:mace:swamid.se:example.com:role:member + """