source: TI12-security/trunk/python/ndg.security.test/ndg/security/test/attAuthority/README @ 4128

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.test/ndg/security/test/attAuthority/README@4128
Revision 4128, 1.7 KB checked in by cbyrom, 11 years ago (diff)

Add extra documentation for setting up attAuthority services - without
needing to run as root.

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 it's own respective properties file.  The services require access to specific
6security settings so the following should be done, if not running as root:
7
8i) Set the NDGSEC_DIR environment variable set to a local dir
9ii) Copy /ndg/security/server/conf and /ndg/security/server/logs directories to this dir
10iii) Set the NDGSEC_AA_PROPFILEPATH environment variable to the dir with the server config
11file - i.e. siteAAttAuthorityProperties.xml
12
13These services must be started before
14running the unit tests.  Start a terminal in this directory and run:
15
16$ python ./siteAServer.py
17
18...and in a separate terminal:
19
20$ python ./siteBServer.py
21
22Note however that the siteBServer is only needed for tests for getting mapped
23certificates: test7GetMappedAttCert and test8GetMappedAttCertStressTest
24
25Settings for the client to these services are configured with
26attAuthorityClientTest.cfg.  The default values should work as set - although these assume
27that tcpmon is running in the system - with local port = 4900 and server port = 5000.  NB,
28problems may occur due to proxy settings (Access Denied errors); no proxy should be specified for the ports used by
29the services - i.e. use:
30
31export $no_proxy=localhost:5100,localhost:5000,localhost:4900
32
33Run the unit tests script AttAuthorityClientTest.py from another terminal:
34
35$ python ./AttAuthorityClientTest.py
36
37Tests can be run individually e.g.
38
39$ python ./AttAuthorityClientTest.py AttAuthorityClientTestCase.test1GetX509Cert
Note: See TracBrowser for help on using the repository browser.