Ignore:
Timestamp:
29/11/06 14:16:23 (14 years ago)
Author:
pjkersha
Message:

All Session Manager Client unit tests working with Session Manager service stub over https:

server/SessionMgr/server-config.tac
server/SessionMgr/SessionMgr_services_server.py
common/SessionMgr/SessionMgr_services.py
common/SessionMgr/SessionMgr_services_types.py
common/SessionMgr/init.py - added disconnect method to SessionMgrClient? class.

common/XMLSecDoc.py: comment out xmlsec for the moment. This module will need to be refactored
to use new digital signature code as used in WS-Security code tests.

File:
1 edited

Legend:

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

    r1781 r1783  
    141141        """testProxyCertConnect: Connect as a command line client -  
    142142        a proxyCert is returned""" 
    143               
     143 
    144144        self.proxyCert = self.clnt.connect(self.config['userName'],  
    145145                                      pPhrase=self.config['userNamePPhrase'], 
     
    155155        a cookie is returned""" 
    156156         
    157         # Note the pass-phrase is read from the file tmp.  To pass 
    158         # explicitly as a string use the 'pPhrase' keyword instead 
    159         self.clnt.disconnect(self.sSessCookie) 
    160         print "User disconnected from Session Manager:\n%s" % self.sSessCookie 
     157        self.testCookieConnect() 
     158         
     159        self.clnt.disconnect(sessCookie=str(self.sessCookie)) 
     160        print "User disconnected from Session Manager:\n%s" % self.sessCookie 
    161161             
    162162 
     
    164164        """testProxyCertDisconnect: Connect as a command line client -  
    165165        a proxyCert is returned""" 
    166               
    167         self.clnt.disconnect(self.proxyCert) 
    168         print "User '%s' connected to Session Manager:\n%s" % self.proxyCert 
     166         
     167        self.testProxyCertConnect() 
     168            
     169        self.clnt.disconnect(proxyCert=self.proxyCert) 
     170        print "User disconnected from Session Manager:\n%s" % self.proxyCert 
    169171 
    170172 
     
    214216    def testGetX509Cert(self): 
    215217        "testGetX509Cert: return the Session Manager's X.509 Cert." 
    216         #import pdb;pdb.set_trace() 
    217218        cert = self.clnt.getX509Cert() 
    218219                                              
Note: See TracChangeset for help on using the changeset viewer.