Changeset 4403 for TI12-security/trunk/python/ndg.security.test/ndg/security/test/attributeauthorityclient/README
- Timestamp:
- 31/10/08 13:41:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/ndg.security.test/ndg/security/test/attributeauthorityclient/README
r4129 r4403 3 3 The test client connects to two different test Attribute Authorities 4 4 corresponding to the fictitious Service Providers Site "A" and Site "B". Each 5 has its own respective properties file. The services require access to specific 6 security settings so the following should be done, if not running as root: 5 has its own respective properties file. 7 6 8 i) Set the NDGSEC_DIR environment variable set to a local dir 9 ii) Copy /ndg/security/server/conf and /ndg/security/server/logs directories to this dir 10 iii) Set the NDGSEC_AA_PROPFILEPATH environment variable to the file with the server config 11 - i.e. siteAAttAuthorityProperties.xml (the same env var should be used for the siteB config file) 7 These services must be started before running the unit tests. Start a terminal 8 in this directory and run: 12 9 13 These services must be started before 14 running the unit tests. Start a terminal in this directory and run: 15 16 $ python ./siteAServer.py 10 $ python ./wsgi/siteAServerApp.py 17 11 18 12 ...and in a separate terminal: 19 13 20 $ python ./ siteBServer.py14 $ python ./wsgi/siteBServerApp.py 21 15 22 Note however that the siteBServer is only needed for tests for getting mapped 23 certificates: test7GetMappedAttCert and test8GetMappedAttCertStressTest 16 Configuration for these services is held in the files ./wsgi/site-a.ini and 17 ./wsgi/site-b.ini respectively. 24 18 25 Settings for the client to these services are configured with 26 attAuthorityClientTest.cfg. The default values should work as set - although these assume 27 that tcpmon is running in the system - with local port = 4900 and server port = 5000. NB, 28 problems may occur due to proxy settings (Access Denied errors); no proxy should be specified for the ports used by 29 the services - i.e. use: 19 Note however that the siteBServerApp.py is only needed for tests for getting 20 mapped attribute certificates: test7GetMappedAttCert and 21 test8GetMappedAttCertStressTest 30 22 31 export no_proxy=localhost:5100,localhost:5000,localhost:4900 23 Settings for the client to these services are configured with the file 24 attAuthorityClientTest.cfg. The default values should work as set. 32 25 33 Run the unit tests script AttAuthorityClientTest.py from another terminal: 26 Problems may occur due to proxy settings (Access Denied errors); no proxy 27 should be specified for the ports used by the services - i.e. use: 34 28 35 $ python ./AttAuthorityClientTest.py 29 $ unset http_proxy 30 31 or set specific exceptions according to the address+port of the services used: 32 33 $ export no_proxy=localhost:5100,localhost:5000 34 35 Run the unit tests script test_attributeauthorityclient.py from another 36 terminal: 37 38 $ python ./test_attributeauthorityclient.py 36 39 37 40 Tests can be run individually e.g. 38 41 39 $ python ./AttAuthorityClientTest.py AttAuthorityClientTestCase.test1GetX509Cert 42 $ python ./test_attributeauthorityclient.py AttributeAuthorityClientTestCase.test1GetX509Cert 43 44 Running Services with the Twisted Application Server 45 ==================================================== 46 Services have been ported from the Twisted Application Server to run with a 47 WSGI wrapper under Paste. Paste scripts are held in the wsgi/ sub-directory 48 and the previous Twisted based ones in twisted/. These are untested and may 49 be removed from future releases of NDG-Security. 50 51 P J Kershaw 31/10/08
Note: See TracChangeset
for help on using the changeset viewer.