Ignore:
Timestamp:
28/11/06 15:47:24 (14 years ago)
Author:
pjkersha
Message:

Working version of Session Manager stubs with reqAuthorisation, connect and getX509Cert calls.

server/SessionMgr/server-config.tac: added stubs for reqAuthorisation - TODO: hook up *real* SessionMgr?
backend.
server/SessionMgr/SessionMgr_services_server.py, common/SessionMgr/SessionMgr_services.py,
common/SessionMgr/SessionMgr_services_types.py, www/html/sessionMgr.wsdl: changes to WSDL to support
reqAuthorisation operations including list elements (by setting maxOccurs="unbounded")

test/SessionMgrClientTest.py: Session Manager unit tests updated for the above.

test/SessionCookieTest.py: new unit test for SessionCookie? module.

common/SessionCookie.py: fixes including ability to pass a cookie string to initialise and create
a new object.

Location:
TI12-security/trunk/python/ndg.security.test/ndg/security/test
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/SessionMgrClientTest.py

    r1773 r1777  
    2626 
    2727 
    28 class SecurityClientTestCase(unittest.TestCase): 
     28class SessionMgrClientTestCase(unittest.TestCase): 
    2929     
    3030    def setUp(self): 
     
    130130        # explicitly as a string use the 'pPhrase' keyword instead 
    131131        sSessCookie = self.clnt.connect(self.config['userName'],  
    132                             pPhraseFilePath=self.config['userNamePPhrase'], 
    133                             clntPriKeyPwd=self.__clntPriKeyPwd) 
     132                                    pPhrase=self.config['userNamePPhrase'], 
     133                                    clntPriKeyPwd=self.__clntPriKeyPwd) 
     134 
    134135        self.sessCookie = SessionCookie(sSessCookie) 
    135136        print "User '%s' connected to Session Manager:\n%s" % \ 
     
    177178                        attAuthorityURI=self.config['aaURI'], 
    178179                        encrSessionMgrURI=self.sessCookie.encrSessionMgrURI, 
     180                        clntPriKeyPwd=self.__clntPriKeyPwd) 
     181           
     182        print resp 
     183 
     184 
     185    def testCookieReqAuthorisationWithExtAttCertList(self): 
     186        """testCookieReqAuthorisation: make an authorisation request using 
     187        a cookie as authentication credential""" 
     188         
     189        self.testCookieConnect() 
     190        resp = self.clnt.reqAuthorisation(\ 
     191                        sessID=self.sessCookie.sessionID,  
     192                        attAuthorityURI=self.config['aaURI'], 
     193                        encrSessionMgrURI=self.sessCookie.encrSessionMgrURI, 
     194                        extAttCertList=['AC1', 'AC2', 'AC3'], 
    179195                        clntPriKeyPwd=self.__clntPriKeyPwd) 
    180196           
Note: See TracChangeset for help on using the changeset viewer.