diff options
author | Simo Sorce <simo@redhat.com> | 2015-02-16 18:15:17 -0500 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2015-02-24 16:37:35 +0100 |
commit | dd8a2ecf15a7f74e2fe3d8c5ea0ff5e2fed20927 (patch) | |
tree | eff59635078da5517462bc0d2d966582965b4012 /tests | |
parent | d28a451a558cb7e82a50f03ebdde9881f274a713 (diff) | |
download | ipsilon-dd8a2ecf15a7f74e2fe3d8c5ea0ff5e2fed20927.tar.gz ipsilon-dd8a2ecf15a7f74e2fe3d8c5ea0ff5e2fed20927.tar.xz ipsilon-dd8a2ecf15a7f74e2fe3d8c5ea0ff5e2fed20927.zip |
Change attrs test to check for fullname
We are not going to return 'extras' by default, and the only
nss attribute mapped to the 'userdata' space is the gecos (as 'fullname')
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/attrs.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/attrs.py b/tests/attrs.py index f01dae4..f29cbb4 100755 --- a/tests/attrs.py +++ b/tests/attrs.py @@ -63,11 +63,7 @@ sp_a = {'hostname': '${ADDRESS}:${PORT}', def fixup_sp_httpd(httpdir): merge = """ - MellonSetEnv "UID" "uidNumber" - MellonSetEnv "GID" "gidNumber" - MellonSetEnv "HOME" "homeDirectory" - MellonSetEnv "GECOS" "gecos" - MellonSetEnv "SHELL" "loginShell" + MellonSetEnv "FULLNAME" "fullname" </Location>""" with open(httpdir + '/conf.d/ipsilon-saml.conf', 'r') as f: conf = f.read() @@ -89,7 +85,7 @@ Alias /sp ${HTTPDIR}/sp with open(httpdir + '/conf.d/ipsilon-saml.conf', 'a') as f: f.write(text) - index = """<!--#echo var="MELLON_UID" -->""" + index = """<!--#echo var="MELLON_FULLNAME" -->""" os.mkdir(httpdir + '/sp') with open(httpdir + '/sp/index.shtml', 'w') as f: f.write(index) @@ -154,7 +150,7 @@ if __name__ == '__main__': try: page = sess.fetch_page(idpname, 'http://127.0.0.11:45081/sp/index.shtml') - page.expected_value('text()', str(userpwd[2])) + page.expected_value('text()', str(userpwd[4])) except ValueError, e: print >> sys.stderr, " ERROR: %s" % repr(e) sys.exit(1) |