summaryrefslogtreecommitdiff
path: root/tests/test_37_entity_categories.py
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@sunet.se>2020-12-10 16:22:47 +0100
committerJohan Lundberg <lundberg@sunet.se>2020-12-10 16:22:47 +0100
commit7aec47383e7eeb12912bacc99c3d1017bd2ee15e (patch)
tree9da7e5264e624fcec1b9c9dff82f5791c3fa8d1c /tests/test_37_entity_categories.py
parentddc2b5253b60a0e665aaac65f2772a4481a7f1b1 (diff)
downloadpysaml2-7aec47383e7eeb12912bacc99c3d1017bd2ee15e.tar.gz
Update of SWAMID policy regarding eduPersonTargetedID
According to SWAMID policy no attributes should be released when entitity category is missing
Diffstat (limited to 'tests/test_37_entity_categories.py')
-rw-r--r--tests/test_37_entity_categories.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_37_entity_categories.py b/tests/test_37_entity_categories.py
index a24a4feb..4ede68d6 100644
--- a/tests/test_37_entity_categories.py
+++ b/tests/test_37_entity_categories.py
@@ -102,7 +102,7 @@ def test_filter_ava3():
}
ava = policy.filter(ava, "urn:mace:example.com:saml:roland:sp")
- assert _eq(list(ava.keys()), ['eduPersonTargetedID', "norEduPersonNIN"])
+ assert _eq(list(ava.keys()), ["norEduPersonNIN"])
def test_filter_ava4():
@@ -131,7 +131,7 @@ def test_filter_ava4():
ava = policy.filter(ava, "urn:mace:example.com:saml:roland:sp")
assert _eq(
- list(ava.keys()), ['eduPersonTargetedID', "givenName", "c", "mail", "sn"]
+ list(ava.keys()), ["givenName", "c", "mail", "sn"]
)
@@ -160,7 +160,7 @@ def test_filter_ava5():
ava = policy.filter(ava, "urn:mace:example.com:saml:roland:sp")
- assert _eq(list(ava.keys()), ['eduPersonTargetedID'])
+ assert _eq(list(ava.keys()), [])
def test_idp_policy_filter():