summaryrefslogtreecommitdiffstats
path: root/tests/testmapping.py
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2015-04-28 19:11:12 +0200
committerPatrick Uiterwijk <puiterwijk@redhat.com>2015-04-28 20:53:06 +0200
commit86f5401c7cb620046b6dd7730844998dec595f43 (patch)
tree60e8eb4602d570341ac7a5cd575b0f55be51e27e /tests/testmapping.py
parentba45934659346510966ca6c58a01dbba3eca7d2f (diff)
downloadipsilon-86f5401c7cb620046b6dd7730844998dec595f43.tar.gz
ipsilon-86f5401c7cb620046b6dd7730844998dec595f43.tar.xz
ipsilon-86f5401c7cb620046b6dd7730844998dec595f43.zip
Add OpenID test suite
This tests core OpenID and the Attribute Exchange, Simple Registration and Teams extensions. Using a small wsgi tool because mod_auth_openid does not support all extensions. Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> Reviewed-by: Rob Crittenden <rcritten@redhat.com>
Diffstat (limited to 'tests/testmapping.py')
-rwxr-xr-xtests/testmapping.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/testmapping.py b/tests/testmapping.py
index 1bc69ec..d5e5dd0 100755
--- 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
- ignored. The authtest plugin returns no groups.
+ ignored.
"""
# Log out
@@ -195,6 +195,7 @@ if __name__ == '__main__':
'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
@@ -221,6 +222,7 @@ if __name__ == '__main__':
'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