source: TI12-security/trunk/python/Tests/AttAuthority/twistedClnt/AttAuthorityClient.py @ 4377

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Tests/AttAuthority/twistedClnt/AttAuthorityClient.py@4377
Revision 4377, 946 bytes checked in by pjkersha, 11 years ago (diff)

Renamed Attribute Authority classes and reran unittests

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2from twisted.python import log
3from twisted.internet import reactor
4
5import sys
6
7from ndg.security.common.zsi.attributeauthority.AttAuthority_services import AttAuthorityServiceLocator
8
9def main(**kw):
10    locator = AttAuthorityServiceLocator()
11    port = locator.getAttAuthority(**kw)
12    import pdb;pdb.set_trace()
13    attCert = port.getAttCert("USER CERT")
14    print "attCert = %s" % attCert
15   
16    # Factory METHOD Just guessing here
17    #response = port.create(CLIENT.CreateRequest())
18    #kw['endPointReference'] = response._EndpointReference
19    #iport = locator.getAttAuthority(**kw)
20    reactor.stop()
21
22
23if __name__ == '__main__':
24    kw = {'url': "http://127.0.0.1:5700/AttributeAuthority",
25          'tracefile': sys.stdout}
26#    op = GetBasicOptParser()
27#    (options, args) = op.parse_args()
28#   
29#    SetUp(options)
30#    kw = GetPortKWArgs(options)
31    reactor.callWhenRunning(main, **kw)
32    reactor.run()
Note: See TracBrowser for help on using the repository browser.