Changeset 4328 for TI12-security/trunk


Ignore:
Timestamp:
10/10/08 16:55:35 (11 years ago)
Author:
pjkersha
Message:

Updates to noseTests and AuthNService unittests.

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  
    1313__revision__ = '$Id: $' 
    1414 
    15 from ndg.security.server.SessionMgr import AbstractAutheNService 
     15from ndg.security.server.SessionMgr import AbstractAuthNService 
    1616 
    1717import logging, os, sys 
     
    1919 
    2020#_____________________________________________________________________________ 
    21 class TestAutheNService(AbstractAutheNService): 
     21class TestAuthNService(AbstractAuthNService): 
    2222    """ 
    2323    A simple test proxy client with the methods stubbed out to allow 
    2424    for use in testing SessionMgr 
    25     - NB, the stubbed out methods here are overkill in terms of the AbstractAutheNService 
    26     interface - they are included to dummy out the MyProxy methods - in case 
    27     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. 
    2828    """ 
    2929    NDG_SEC_DIR_ENV_VAR = '$NDGSEC_DIR' 
     
    4141 
    4242    def __init__(self, propFilePath=None, **prop): 
    43         log.info("TestAutheNService __init__() called") 
     43        log.info("TestAuthNService __init__() called") 
    4444        log.info("Loading in the various cert and key data...") 
    4545        if self.NDG_SEC_DIR == self.NDG_SEC_DIR_ENV_VAR or not self.NDG_SEC_DIR: 
     
    6363 
    6464    def writeProxyFile(cls, proxyCert, proxyPriKey, userCert, filePath=None): 
    65         log.info("TestAutheNService writeProxyFile() called") 
     65        log.info("TestAuthNService writeProxyFile() called") 
    6666 
    6767    def readProxyFile(cls, filePath=None): 
    68         log.info("TestAutheNService writeProxyFile() called") 
     68        log.info("TestAuthNService writeProxyFile() called") 
    6969        return tuple(self.TEST_PROXY_CERT, self.TEST_PROXY_KEY, self.TEST_USER_CERT) 
    7070 
    7171    def setProperties(self, **prop): 
    72         log.info("TestAutheNService setProperties() called") 
     72        log.info("TestAuthNService setProperties() called") 
    7373 
    7474 
     
    7878             ownerKeyFile=None, 
    7979             ownerPassphrase=None): 
    80         log.info("TestAutheNService setProperties() called") 
     80        log.info("TestAuthNService setProperties() called") 
    8181        return True, self.INFO_ERROR_MESSAGE, [self.START_DATE, self.END_DATE, self.CERT_OWNER] 
    8282 
     
    8989                         ownerKeyFile=None, 
    9090                         ownerPassphrase=None): 
    91         log.info("TestAutheNService changePassphrase() called") 
     91        log.info("TestAuthNService changePassphrase() called") 
    9292 
    9393 
     
    9797                ownerKeyFile=None, 
    9898                ownerPassphrase=None): 
    99         log.info("TestAutheNService destroy() called") 
     99        log.info("TestAuthNService destroy() called") 
    100100 
    101101 
     
    110110              lifetime=None, 
    111111              force=True): 
    112         log.info("TestAutheNService store() called") 
     112        log.info("TestAuthNService store() called") 
    113113 
    114114 
    115115    def logon(self, username, passphrase, lifetime=None): 
    116         log.info("TestAutheNService store() called") 
     116        log.info("TestAuthNService store() called") 
    117117        return tuple([self.TEST_PROXY_CERT, self.TEST_PROXY_KEY, self.TEST_CERT_CHAIN]) 
    118118 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/noseTests.py

    r4131 r4328  
     1#/usr/bin/env python 
    12''' 
    23Suite to wrapper all granulator test cases 
    34 
    4 C Byrom Jun 08 
    5 Tessella 
     5NERC Data Grid Project 
     6 
     7This software may be distributed under the terms of the Q Public License, 
     8version 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$" 
    615''' 
    716import nose 
Note: See TracChangeset for help on using the changeset viewer.