source: TI12-security/trunk/python/ndg.security.test/ndg/security/test/attributeauthorityclient/README @ 4462

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.test/ndg/security/test/attributeauthorityclient/README@4462
Revision 4462, 1.9 KB checked in by pjkersha, 12 years ago (diff)

More re-arranging of Site A/B AA config.

Line 
1Unit tests for Attribute Authority Web Service Client
2=====================================================
3The test client connects to two different test Attribute Authorities
4corresponding to the fictitious Service Providers Site "A" and Site "B".  Each
5has its own respective properties file. 
6
7These services must be started before running the unit tests.  Start a terminal
8in this directory and run:
9
10$ python ./siteA/siteAServerApp.py
11
12...and in a separate terminal:
13
14$ python ./siteB/siteBServerApp.py
15
16Configuration for these services is held in the files ./siteA/site-a.ini and
17./siteB/site-b.ini respectively.
18
19Note however that the siteBServerApp.py is only needed for tests for getting
20mapped attribute certificates: test7GetMappedAttCert and
21test8GetMappedAttCertStressTest
22
23Settings for the client to these services are configured with the file
24attAuthorityClientTest.cfg.  The default values should work as set.
25
26Problems may occur due to proxy settings (Access Denied errors); no proxy
27should be specified for the ports used by the services - i.e. use:
28
29$ unset http_proxy
30
31or set specific exceptions according to the address+port of the services used:
32
33$ export no_proxy=localhost:5100,localhost:5000
34
35Run the unit tests script test_attributeauthorityclient.py from another
36terminal:
37
38$ python ./test_attributeauthorityclient.py
39
40Tests can be run individually e.g.
41
42$ python ./test_attributeauthorityclient.py AttributeAuthorityClientTestCase.test1GetX509Cert
43
44Running Services with the Twisted Application Server
45====================================================
46Services have been ported from the Twisted Application Server to run with a
47WSGI wrapper under Paste.  Paste scripts are held in the siteA/ and siteB/
48sub-directories and the previous Twisted based ones in twisted/.  The latter
49are *untested* and may be removed from future releases of NDG-Security.
50
51P J Kershaw 31/10/08
Note: See TracBrowser for help on using the repository browser.