Ignore:
Timestamp:
23/11/07 13:50:10 (13 years ago)
Author:
pjkersha
Message:

SessionMgr? SessionMgrClient? unit tests complete with tests for getSessionStatus included

ndg.security.server/ndg/security/server/conf/sessionMgr.tac:

  • code for getSessionStatus incorporated

ndg.security.server/ndg/security/server/SessionMgr/SessionMgr_services_server.py,
ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services.py,
ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services_types.py,
www/html/sessionMgr.wsdl: fixed getSessionStatusResponse - isAlive element needs to be nested within a sequence elem.

ndg.security.test/ndg/security/test/sessionMgrClient/SessionMgrClientTest.py,

ndg.security.test/ndg/security/test/sessionMgrClient/sessionMgrProperties.xml: default to https for tests

ndg.security.test/ndg/security/test/sessionMgrClient/sessionMgrClientTest.cfg: get rid of test1AddUser and added test2GetSessionStatus

ndg.security.test/ndg/security/test/sessionMgr/test.py: SessionMgr? unit tests all working

ndg.security.common/ndg/security/common/SessionMgr/init.py: added getSessionStatus method

ndg.security.common/ndg/security/common/AttAuthority/init.py: fix to getHostInfo - return dict indexed by hostname

ndg.security.common/ndg/security/common/AttAuthority/AttAuthority_services.py: re-ran code generation from WSDL

Makefile: added targets for building ZSI code stubs from AA and SM WSDLs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services.py

    r3024 r3044  
    2929        # no ws-addressing 
    3030 
    31     # op: <ZSI.wstools.WSDLTools.Message instance at 0x4077376c> 
     31    # op: <ZSI.wstools.WSDLTools.Message instance at 0x407737ec> 
    3232    def getSessionStatus(self, userDN,sessID): 
    3333 
     
    4141        # no output wsaction 
    4242        response = self.binding.Receive(getSessionStatusOutputMsg.typecode) 
    43         return  
     43        isAlive = response._isAlive 
     44        return isAlive 
    4445 
    45     # op: <ZSI.wstools.WSDLTools.Message instance at 0x40773bcc> 
     46    # op: <ZSI.wstools.WSDLTools.Message instance at 0x40773c4c> 
    4647    def connect(self, username,passphrase,createServerSess): 
    4748 
     
    6263        return proxyCert,proxyPriKey,userCert,sessID 
    6364 
    64     # op: <ZSI.wstools.WSDLTools.Message instance at 0x4077898c> 
     65    # op: <ZSI.wstools.WSDLTools.Message instance at 0x40778a8c> 
    6566    def disconnect(self, userCert,sessID): 
    6667 
     
    7677        return  
    7778 
    78     # op: <ZSI.wstools.WSDLTools.Message instance at 0x40778b2c> 
     79    # op: <ZSI.wstools.WSDLTools.Message instance at 0x40778c2c> 
    7980    def getAttCert(self, userCert,sessID,attAuthorityURI,attAuthorityCert,reqRole,mapFromTrustedHosts,rtnExtAttCertList,extAttCert,extTrustedHost): 
    8081 
     
    100101        return attCert,msg,extAttCertOut 
    101102 
    102     # op: <ZSI.wstools.WSDLTools.Message instance at 0x40778cac> 
     103    # op: <ZSI.wstools.WSDLTools.Message instance at 0x40778dac> 
    103104    def getX509Cert(self): 
    104105 
Note: See TracChangeset for help on using the changeset viewer.