Ignore:
Timestamp:
13/12/06 17:04:49 (14 years ago)
Author:
pjkersha
Message:

server/ndg/security/server/MyProxy.py: integrated from Tests/m2CryptoMyPxClnt
but tests and fixes required.
test/ndg/security/test/AttAuthority/AttAuthorityClientTest.py: cleaned up
tests.
test/ndg/security/test/MyProxy/init.py: MyProxy? unit test package
test/MyProxy/myProxyProperties.xml: test XML properties file for client class
test/MyProxy/myProxyClientTest.cfg: config file for unit test
test/MyProxy/MyProxyClientTest.py: unit test module - no tests working yet

Location:
TI12-security/trunk/python/ndg.security.test/ndg/security/test
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/AttAuthority/AttAuthorityClientTest.py

    r1824 r1858  
    11#!/usr/bin/e 
    2 """NDG Attribute Authority client  
     2"""NDG Attribute Authority client unit tests 
    33 
    44NERC Data Grid Project 
     
    2020     
    2121    def setUp(self): 
    22         try: 
    23             # Session Manager WSDL 
    24             self.uri = 'http://127.0.0.1:5700/AttributeAuthority' 
    25      
    26             # Instantiate WS proxy 
    27             self.clnt = AttAuthorityClient(self.uri,  
    28                                            tracefile=sys.stderr) 
    29         except Exception, e: 
    30             self.fail(str(e)) 
    31              
    32              
    33     def tearDown(self): 
    34         pass 
    35      
     22        # Session Manager WSDL 
     23        self.uri = 'http://127.0.0.1:5700/AttributeAuthority' 
     24 
     25        # Instantiate WS proxy 
     26        self.clnt = AttAuthorityClient(self.uri, tracefile=sys.stderr) 
     27    
    3628     
    3729    def testGetPubKey(self): 
     
    4335 
    4436    def testGetTrustedHostInfo(self): 
    45          
    46         try: 
    47             role = 'role' 
    48             self.clnt.getTrustedHostInfo(role) 
    49         except Exception, e: 
    50             self.fail(str(e)) 
     37        """testGetTrustedHostInfo: retrieve trusted host info matching a 
     38        given role""" 
     39        role = 'role' 
     40        self.clnt.getTrustedHostInfo(role) 
    5141 
    5242 
    5343    def testGetTrustedHostInfoWithNoRole(self): 
    54          
    55         try: 
    56             self.clnt.getTrustedHostInfo() 
    57         except Exception, e: 
    58             self.fail(str(e)) 
    59  
     44        """testGetTrustedHostInfoWithNoRole: retrieve trusted host info  
     45        irrespective of role""" 
     46        self.clnt.getTrustedHostInfo() 
    6047 
    6148    def testGetHostInfo(self): 
    62          
    63         try: 
    64             self.clnt.getHostInfo() 
    65         except Exception, e: 
    66             self.fail(str(e)) 
     49        """testGetHostInfo: retrieve info for AA host""" 
     50        self.clnt.getHostInfo() 
    6751 
    6852 
Note: See TracChangeset for help on using the changeset viewer.