source: TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/attributeauthorityclient/README @ 7077

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg-security/TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/attributeauthorityclient/README@7077
Revision 7077, 1.7 KB checked in by pjkersha, 10 years ago (diff)
  • Property svn:keywords set to Id
RevLine 
[2058]1Unit tests for Attribute Authority Web Service Client
[3189]2=====================================================
3The test client connects to two different test Attribute Authorities
[3192]4corresponding to the fictitious Service Providers Site "A" and Site "B".  Each
[4732]5has its own respective configuration.  As they are also used in other tests,
6this configuration is held in a separate config/ directory parallel to this
7one.
[4128]8
[4403]9These services must be started before running the unit tests.  Start a terminal
10in this directory and run:
[4128]11
[5290]12$ python ../../config/attributeauthority/sitea/siteAServerApp.py
[2058]13
[3189]14...and in a separate terminal:
[2058]15
[5290]16$ python ../../config/attributeauthority/siteb/siteBServerApp.py
[2058]17
[4732]18Configuration for these services is held in the files
[2058]19
[5290]20../../config/attributeauthority/sitea/site-a.ini and
21../../config/attributeauthority/siteb/site-b.ini
[4732]22
23respectively.
24
[4403]25Note however that the siteBServerApp.py is only needed for tests for getting
[4732]26mapped attribute certificates: test07GetMappedAttCert and
27test08GetMappedAttCertStressTest
[3192]28
[4403]29Settings for the client to these services are configured with the file
30attAuthorityClientTest.cfg.  The default values should work as set.
[4111]31
[4403]32Problems may occur due to proxy settings (Access Denied errors); no proxy
33should be specified for the ports used by the services - i.e. use:
[3189]34
[4403]35$ unset http_proxy
[3189]36
[4403]37or set specific exceptions according to the address+port of the services used:
38
39$ export no_proxy=localhost:5100,localhost:5000
40
41Run the unit tests script test_attributeauthorityclient.py from another
42terminal:
43
44$ python ./test_attributeauthorityclient.py
45
[3189]46Tests can be run individually e.g.
47
[4732]48$ python ./test_attributeauthorityclient.py AttributeAuthorityClientTestCase.test01GetHostInfo
[4403]49
[4732]50P J Kershaw 24/12/08
Note: See TracBrowser for help on using the repository browser.