projects
/
cascardo
/
ipsilon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add OpenID test suite
[cascardo/ipsilon.git]
/
tests
/
testmapping.py
diff --git
a/tests/testmapping.py
b/tests/testmapping.py
index
1bc69ec
..
d5e5dd0
100755
(executable)
--- a/
tests/testmapping.py
+++ b/
tests/testmapping.py
@@
-65,7
+65,7
@@
def check_info_plugin(s, idp_name, urlbase, expected):
"""
Logout, login, fetch SP page to get the info variables and
compare the MELLON_ ones to what we expect. IDP and NAMEID are
"""
Logout, login, fetch SP page to get the info variables and
compare the MELLON_ ones to what we expect. IDP and NAMEID are
- ignored.
The authtest plugin returns no groups.
+ ignored.
"""
# Log out
"""
# Log out
@@
-195,6
+195,7
@@
if __name__ == '__main__':
'surname': user,
'givenname': 'Test User',
'email': '%s@example.com' % user,
'surname': user,
'givenname': 'Test User',
'email': '%s@example.com' % user,
+ 'groups': user,
}
check_info_plugin(sess, idpname, spurl, expect)
except Exception, e: # pylint: disable=broad-except
}
check_info_plugin(sess, idpname, spurl, expect)
except Exception, e: # pylint: disable=broad-except
@@
-221,6
+222,7
@@
if __name__ == '__main__':
'surname': user,
'givenname': 'Test User',
'email': '%s@example.com' % user,
'surname': user,
'givenname': 'Test User',
'email': '%s@example.com' % user,
+ 'groups': user
}
check_info_plugin(sess, idpname, spurl, expect)
except Exception, e: # pylint: disable=broad-except
}
check_info_plugin(sess, idpname, spurl, expect)
except Exception, e: # pylint: disable=broad-except