#123 Add a test for the SP admin panel when name is a hostname
Merged 7 years ago by puiterwijk. Opened 7 years ago by puiterwijk.
puiterwijk/ipsilon fix-hostname-spname  into  master

file modified
+13
@@ -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

rebased

7 years ago

Pull-Request has been merged by puiterwijk

7 years ago
Metadata