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.

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

Legend:

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

    r3199 r4120  
    3131should be set. 
    3232  
    33 3) Two test Attribute Authority services are required.  These can be run from  
     334) Two test Attribute Authority services are required.  These can be run from  
    3434the Attribute Authority unit test directory.  It's path relative to this  
    3535directory is ../attAuthority.   
     
    7070 $ openssl x509 -in  /etc/grid-security/certificates/abcdef01.0 -text 
    7171  
    72 4) Run the tests with the command: 
     725) Run the tests with the command: 
    7373 
    7474$ python ./test.py 
    7575 
    76 5) To run individual tests give the test method name: 
     766) To run individual tests give the test method name: 
    7777 
    7878$ python ./test.py SessionMgrTestCase.test1Connect 
     
    8282 * See the installation guide for MyProxy trouble shooting information. 
    8383 
     84Troubleshooting: 
     85 * http_proxy environment variable settings can cause connection problems to 
     86the Attribute Authorities.  unset http_proxy or set no_proxy: 
     87 
     88$ export no_proxy=http://localhost:5000/AttributeAuthority,http://localhost:5100/AttributeAuthority 
  • 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     
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/sessionMgrClient/SessionMgrClientTest.py

    r3652 r4120  
    169169                                                        (username, self.sessID) 
    170170             
    171         creds='\n'.join((self.issuingCert or '',self.userCert,self.userPriKey)) 
     171        creds='\n'.join((self.issuingCert or '', 
     172                         self.userCert, 
     173                         self.userPriKey)) 
    172174        open(mkPath("user.creds"), "w").write(creds) 
    173175             
Note: See TracChangeset for help on using the changeset viewer.