From 49f544a69463d2c856a31e090391dd228a2f12ba Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Oct 05 2016 13:32:23 +0000 Subject: Add a test for the SP admin panel when name is a hostname Bug #196 was fixed by 3b0b39bc, and this adds a test case to make sure it is working and won't break. Fixes: #196 Signed-off-by: Patrick Uiterwijk Reviewed-by: Howard Johnson --- diff --git a/tests/test1.py b/tests/test1.py index 26343e2..f56135d 100755 --- a/tests/test1.py +++ b/tests/test1.py @@ -185,6 +185,19 @@ if __name__ == '__main__': sys.exit(1) print " SUCCESS" + print "test1: Update second SP ...", + try: + # This is a test to see whether we can update SAML SPs where the name + # is an FQDN (includes hyphens and dots). See bug #196 + sess.set_attributes_and_mapping(idpname, [], + ['namefull', 'givenname', 'surname'], + spname=sp2name) + except Exception, e: # pylint: disable=broad-except + print >> sys.stderr, " ERROR: %s" % repr(e) + sys.exit(1) + else: + print " SUCCESS" + print "test1: Try authentication failure ...", newsess = HttpSessions() newsess.add_server(idpname, 'https://127.0.0.10:45080', user, 'wrong')