Changeset 4328 for TI12-security/trunk
- Timestamp:
- 10/10/08 16:55:35 (12 years ago)
- Location:
- TI12-security/trunk/python/ndg.security.test/ndg/security/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/ndg.security.test/ndg/security/test/authnservice/test_authnservice.py
r4322 r4328 13 13 __revision__ = '$Id: $' 14 14 15 from ndg.security.server.SessionMgr import AbstractAuth eNService15 from ndg.security.server.SessionMgr import AbstractAuthNService 16 16 17 17 import logging, os, sys … … 19 19 20 20 #_____________________________________________________________________________ 21 class TestAuth eNService(AbstractAutheNService):21 class TestAuthNService(AbstractAuthNService): 22 22 """ 23 23 A simple test proxy client with the methods stubbed out to allow 24 24 for use in testing SessionMgr 25 - NB, the stubbed out methods here are overkill in terms of the AbstractAutheNService26 interface - they are included to dummy out the MyProxy methods - in case27 further testing is implemented of this in future.25 - NB, the stubbed out methods here are overkill in terms of the 26 AbstractAuthNService interface - they are included to dummy out the MyProxy 27 methods - in case further testing is implemented of this in future. 28 28 """ 29 29 NDG_SEC_DIR_ENV_VAR = '$NDGSEC_DIR' … … 41 41 42 42 def __init__(self, propFilePath=None, **prop): 43 log.info("TestAuth eNService __init__() called")43 log.info("TestAuthNService __init__() called") 44 44 log.info("Loading in the various cert and key data...") 45 45 if self.NDG_SEC_DIR == self.NDG_SEC_DIR_ENV_VAR or not self.NDG_SEC_DIR: … … 63 63 64 64 def writeProxyFile(cls, proxyCert, proxyPriKey, userCert, filePath=None): 65 log.info("TestAuth eNService writeProxyFile() called")65 log.info("TestAuthNService writeProxyFile() called") 66 66 67 67 def readProxyFile(cls, filePath=None): 68 log.info("TestAuth eNService writeProxyFile() called")68 log.info("TestAuthNService writeProxyFile() called") 69 69 return tuple(self.TEST_PROXY_CERT, self.TEST_PROXY_KEY, self.TEST_USER_CERT) 70 70 71 71 def setProperties(self, **prop): 72 log.info("TestAuth eNService setProperties() called")72 log.info("TestAuthNService setProperties() called") 73 73 74 74 … … 78 78 ownerKeyFile=None, 79 79 ownerPassphrase=None): 80 log.info("TestAuth eNService setProperties() called")80 log.info("TestAuthNService setProperties() called") 81 81 return True, self.INFO_ERROR_MESSAGE, [self.START_DATE, self.END_DATE, self.CERT_OWNER] 82 82 … … 89 89 ownerKeyFile=None, 90 90 ownerPassphrase=None): 91 log.info("TestAuth eNService changePassphrase() called")91 log.info("TestAuthNService changePassphrase() called") 92 92 93 93 … … 97 97 ownerKeyFile=None, 98 98 ownerPassphrase=None): 99 log.info("TestAuth eNService destroy() called")99 log.info("TestAuthNService destroy() called") 100 100 101 101 … … 110 110 lifetime=None, 111 111 force=True): 112 log.info("TestAuth eNService store() called")112 log.info("TestAuthNService store() called") 113 113 114 114 115 115 def logon(self, username, passphrase, lifetime=None): 116 log.info("TestAuth eNService store() called")116 log.info("TestAuthNService store() called") 117 117 return tuple([self.TEST_PROXY_CERT, self.TEST_PROXY_KEY, self.TEST_CERT_CHAIN]) 118 118 -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/noseTests.py
r4131 r4328 1 #/usr/bin/env python 1 2 ''' 2 3 Suite to wrapper all granulator test cases 3 4 4 C Byrom Jun 08 5 Tessella 5 NERC Data Grid Project 6 7 This software may be distributed under the terms of the Q Public License, 8 version 1.0 or later. 9 """ 10 __author__ = "C Byrom" 11 __date__ = "01/06/08" 12 __copyright__ = "(C) 2008 STFC & NERC" 13 __contact__ = "P.J.Kershaw@rl.ac.uk" 14 __revision__ = "$Id$" 6 15 ''' 7 16 import nose
Note: See TracChangeset
for help on using the changeset viewer.