Ignore:
Timestamp:
29/11/06 14:16:23 (13 years ago)
Author:
pjkersha
Message:

All Session Manager Client unit tests working with Session Manager service stub over https:

server/SessionMgr/server-config.tac
server/SessionMgr/SessionMgr_services_server.py
common/SessionMgr/SessionMgr_services.py
common/SessionMgr/SessionMgr_services_types.py
common/SessionMgr/init.py - added disconnect method to SessionMgrClient? class.

common/XMLSecDoc.py: comment out xmlsec for the moment. This module will need to be refactored
to use new digital signature code as used in WS-Security code tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.server/ndg/security/server/SessionMgr/server-config.tac

    r1778 r1783  
    2424from ndg.security.server.SessionMgr import SessionMgr 
    2525 
     26# Use for stub testing only 
    2627from ndg.security.common.SessionCookie import SessionCookie 
    2728from datetime import datetime, timedelta 
     
    4243         #import pdb;pdb.set_trace() 
    4344         request, response = SessionMgrService.soap_connect(self, ps) 
    44          response.set_element_proxyCert('PROXY CERT') 
    45           
    46          dtExpiry = datetime.utcnow() + timedelta(seconds=60*60) 
    47          cookie = SessionCookie(ndgID1='9'*64,  
    48                                 ndgID2='0'*64, 
    49                                 dtExpiry=dtExpiry) 
    50           
    51          response.set_element_cookie(cookie) 
     45 
     46         if request.get_element_getCookie(): 
     47             dtExpiry = datetime.utcnow() + timedelta(seconds=60*60) 
     48             cookie = SessionCookie(ndgID1='9'*64,  
     49                                    ndgID2='0'*64, 
     50                                    dtExpiry=dtExpiry) 
     51             response.set_element_cookie(cookie) 
     52         else:  
     53             response.set_element_proxyCert('PROXY CERT') 
     54                          
    5255         return request, response 
    5356 
Note: See TracChangeset for help on using the changeset viewer.