'instance': '${NAME}',
'secure': 'no',
'testauth': 'yes',
- 'info_nss': 'yes',
'pam': 'no',
- 'krb': 'no',
+ 'gssapi': 'no',
'ipa': 'no',
'server_debugging': 'True'}
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()
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)
idpname = 'idp1'
spname = 'sp1'
- userpwd = pwd.getpwuid(os.getuid())
- user = userpwd[0]
+ user = pwd.getpwuid(os.getuid())[0]
sess = HttpSessions()
sess.add_server(idpname, 'http://127.0.0.10:45080', user, 'ipsilon')
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()', 'Test User %s' % user)
except ValueError, e:
print >> sys.stderr, " ERROR: %s" % repr(e)
sys.exit(1)