From: Rob Crittenden Date: Thu, 9 Apr 2015 18:59:41 +0000 (-0400) Subject: Make the authtest login plugin provide more info X-Git-Tag: v0.6.0~5 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=commitdiff_plain;h=cd0a566562d0279d13c3df08366bc38acf53011a Make the authtest login plugin provide more info Provide more variables to test for in allow attribute and mapping testing. Adds givenname (Test User), surname (the username) and email (username@example.com). https://fedorahosted.org/ipsilon/ticket/25 Signed-off-by: Rob Crittenden Reviewed-by: Simo Sorce --- diff --git a/ipsilon/login/authtest.py b/ipsilon/login/authtest.py index d7a49d8..7fc4160 100644 --- a/ipsilon/login/authtest.py +++ b/ipsilon/login/authtest.py @@ -32,7 +32,12 @@ class TestAuth(LoginFormBase): if username and password: if password == 'ipsilon': cherrypy.log("User %s successfully authenticated." % username) - testdata = {'fullname': 'Test User %s' % username} + testdata = { + 'givenname': 'Test User', + 'surname': username, + 'fullname': 'Test User %s' % username, + 'email': '%s@example.com' % username + } return self.lm.auth_successful(self.trans, username, 'password', testdata) else: