| |
@@ -185,6 +185,19 @@
|
| |
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')
|
| |
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 puiterwijk@redhat.com