Ignore:
Timestamp:
16/06/06 11:38:22 (13 years ago)
Author:
pjkersha
Message:

Tests/AttAuthorityIOtest.py: added testTrustedHosts3 to test results from livglue

Tests/security.py: returnURI input to init isn't needed - it can be picked up from as a form variable.

NDG/SecurityCGI.py: returnCreds renamed to returnCredsResponse. This method now checks the domain of the input
cookie. If this matches that of the returnURI, then there is no need to return the cookie information as they
can share the cookie.

NDG/Session.py: Created a metaclass _MetaUserSession for UserSession?. This enables UserSession? to have read-
only class variables - e.g. "cookieTags"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/Tests/AttAuthorityIOtest.py

    r1176 r1203  
    303303        print self.trustedHostResp() 
    304304        print self.trustedHostResp['trustedHosts'] 
    305          
    306  
     305 
     306         
     307    def testTrustedHosts3(self): 
     308         
     309        xmlTxt = \ 
     310"""<?xml version="1.0" encoding="UTF-8"?> 
     311<TrustedHostInfoResp> 
     312    <trustedHosts> 
     313        <trusted name="BADC"> 
     314            <wsdl>http://glue.badc.rl.ac.uk/attAuthority.wsdl</wsdl> 
     315            <loginURI>https://glue.badc.rl.ac.uk/cgi-bin/security.py</loginURI> 
     316            <roleSet> 
     317                <role>school</role> 
     318                <role>rapid</role> 
     319                <role>government</role> 
     320                <role>badcUser</role> 
     321                <role>nercFunded</role> 
     322                <role>bodcUser</role> 
     323                <role>commercial</role> 
     324                <role>metOfficeForm</role> 
     325                <role>other</role> 
     326                <role>acsoe</role> 
     327                <role>university</role> 
     328                <role>nercInst</role> 
     329            </roleSet> 
     330        </trusted> 
     331    </trustedHosts> 
     332</TrustedHostInfoResp>""" 
     333 
     334        try:        
     335            self.trustedHostResp = TrustedHostInfoResp(xmlTxt=xmlTxt) 
     336        except Exception, e: 
     337            self.fail(str(e)) 
     338   
     339        print self.trustedHostResp() 
     340        print self.trustedHostResp['trustedHosts'] 
     341         
     342         
    307343class AttAuthorityIOtestSuite(unittest.TestSuite): 
    308344    def __init__(self): 
Note: See TracChangeset for help on using the changeset viewer.