Ignore:
Timestamp:
11/08/08 11:35:00 (12 years ago)
Author:
pjkersha
Message:

Fix for ndg.security.test.sessionMgr.test.SessionMgrTestCase?.test1Connect: use asPEM method to convert self.userCert to a string for output to file.

File:
1 edited

Legend:

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

    r3203 r4120  
    2828mkPath = lambda file: jnPath(os.environ['NDGSEC_SM_UNITTEST_DIR'], file) 
    2929 
     30import logging 
     31logging.basicConfig(level=logging.ERROR) 
     32 
    3033 
    3134class SessionMgrTestCase(unittest.TestCase): 
     
    8184        print "User '%s' connected to Session Manager:\n%s" % \ 
    8285                                                        (username, self.sessID) 
    83         creds='\n'.join((self.issuingCert or '',self.userCert,self.userPriKey)) 
     86        creds='\n'.join((self.issuingCert or '', 
     87                         self.userCert.asPEM().strip(), 
     88                         self.userPriKey)) 
    8489        open(mkPath("user.creds"), "w").write(creds) 
    8590     
Note: See TracChangeset for help on using the changeset viewer.