Ignore:
Timestamp:
20/11/06 22:06:50 (14 years ago)
Author:
pjkersha
Message:

Setting up client, server and unit tests for Attribute Authority.

File:
1 edited

Legend:

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

    r1720 r1724  
    138138if __name__ == "__main__": 
    139139    unittest.main() 
     140 
     141from AttAuthority_services import AttAuthorityServiceLocator 
     142 
     143def main(**kw): 
     144    locator = AttAuthorityServiceLocator() 
     145    port = locator.getAttAuthority(**kw) 
     146    import pdb;pdb.set_trace() 
     147    attCert = port.getAttCert("USER CERT") 
     148    print "attCert = %s" % attCert 
     149     
     150    # Factory METHOD Just guessing here 
     151    #response = port.create(CLIENT.CreateRequest()) 
     152    #kw['endPointReference'] = response._EndpointReference 
     153    #iport = locator.getAttAuthority(**kw) 
     154#    reactor.stop() 
     155 
     156 
     157if __name__ == '__main__': 
     158    main(url="http://127.0.0.1:5700/AttributeAuthority") 
     159#    op = GetBasicOptParser() 
Note: See TracChangeset for help on using the changeset viewer.