Skip to content

Commit d0ff5fa

Browse files
author
Thomas Thorogood
authored
Remove unused IdPs and tests. Update cascadia. (#27)
1 parent 026d1c4 commit d0ff5fa

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

tests/test_federated.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,6 @@
33
import pytest
44

55

6-
@pytest.mark.parametrize(
7-
"student,employee",
8-
[
9-
(["loser"], ["winner"]),
10-
(["winner"], None),
11-
(None, ["winner"]),
12-
([], ["winner"]),
13-
(["winner"], []),
14-
],
15-
)
16-
def test_cascadia_employee_attributes(student, employee):
17-
"""
18-
Cascadia Employees should come across as such, but our test one comes
19-
through as a student. This checks that if either one is set, we get
20-
a value for remote_user. It's still entirely possible for student to
21-
win out.
22-
"""
23-
prefix = "urn:mace:washington.edu:dir:attribute-def"
24-
attrs = {}
25-
if student is not None:
26-
attrs[f"{prefix}:stu-validationID"] = student
27-
if employee is not None:
28-
attrs[f"{prefix}:emp-validationID"] = employee
29-
mapped_attrs = dict(attribute.map(attrs, federated.CascadiaEmployeeIdp))
30-
assert mapped_attrs["remote_user"] == "winner"
31-
32-
336
def test_scca_dynamic_entity_id():
347
entity_id = "https://example.com"
358
scca = federated.SccaIdp(entity_id)

uw_saml2/idp/federated.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class CascadiaIdp(IdpConfig):
3333
krm7bWjDEu8/wRKVz894pKIC/oiklg==
3434
"""
3535

36+
3637
class CollegenetIdp(IdpConfig):
3738
"""
3839
One thing of note about collegenet is that it encrypts attributes and thus

0 commit comments

Comments
 (0)