Changeset 4075 for TI12-security/trunk


Ignore:
Timestamp:
30/07/08 10:01:31 (11 years ago)
Author:
cbyrom
Message:

Improve logging on test client/server + make use of lambda mkpath function.

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

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/wsSecurity/client/echoClientTest.py

    r4052 r4075  
    3333                os.path.abspath(os.path.dirname(__file__)) 
    3434         
    35         configFilePath = jnPath(os.environ['NDGSEC_WSSECLNT_UNITTEST_DIR'], 
    36                                 "echoClientTest.cfg") 
     35        configFilePath = mkPath('echoClientTest.cfg') 
    3736        self.cfg = SafeConfigParser() 
    3837        self.cfg.read(configFilePath) 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/wsSecurity/server/echoServer.py

    r3897 r4075  
    2121mkPath = lambda file: jnPath(os.environ['NDGSEC_WSSESRV_UNITTEST_DIR'], file) 
    2222 
     23import logging 
     24log = logging.getLogger(__name__) 
    2325 
    2426class EchoService(_EchoService): 
     
    2830        # Stop in debugger at beginning of SOAP stub if environment variable  
    2931        # is set 
     32        logging.basicConfig(level=logging.DEBUG, 
     33                        format='%(asctime)s %(filename)s:%(lineno)d %(levelname)s %(message)s') 
     34 
    3035        self.__debug = bool(os.environ.get('NDGSEC_INT_DEBUG')) 
    3136        if self.__debug: 
     
    5358        @rtype: tuple 
    5459        @return: response objects''' 
     60        log.info("Server received an Echo service request...") 
    5561        if self.__debug: 
    5662            import pdb 
     
    8490            os.path.abspath(os.path.dirname(__file__)) 
    8591     
    86     configFilePath = jnPath(os.environ['NDGSEC_WSSESRV_UNITTEST_DIR'], 
    87                             "echoServer.cfg") 
     92    configFilePath = mkPath('echoServer.cfg') 
     93 
    8894    cfg = SafeConfigParser() 
    8995    cfg.read(configFilePath) 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/wsSecurity/server/wssecurity.cfg

    r3960 r4075  
    6060# For WSSE 1.1 - service returns signature confirmation containing signature  
    6161# value sent by client 
    62 applySignatureConfirmation=False 
     62applySignatureConfirmation=True 
    6363 
    6464# Inclusive namespace prefixes - for Exclusive Canonicalisation only 
Note: See TracChangeset for help on using the changeset viewer.