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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.test/ndg/security/test/attributeauthorityclient/README@5053
Revision 4732, 1.7 KB checked in by pjkersha, 11 years ago (diff)
  • Refactored Credential Wallet unit tests separating out test files into the config dir.
  • Fix to ndg.security.common.wssecurity.BaseSignatureHandler?.BaseSignatureHandler? for is exclusive C14N tests - default to True until inclusive C14N is fixed.
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 configuration.  As they are also used in other tests,
6this configuration is held in a separate config/ directory parallel to this
7one.
8
9These services must be started before running the unit tests.  Start a terminal
10in this directory and run:
11
12$ python ../config/attributeauthority/sitea/siteAServerApp.py
13
14...and in a separate terminal:
15
16$ python ../config/attributeauthority/siteb/siteBServerApp.py
17
18Configuration for these services is held in the files
19
20../config/attributeauthority/sitea/site-a.ini and
21../config/attributeauthority/siteb/site-b.ini
22
23respectively.
24
25Note however that the siteBServerApp.py is only needed for tests for getting
26mapped attribute certificates: test07GetMappedAttCert and
27test08GetMappedAttCertStressTest
28
29Settings for the client to these services are configured with the file
30attAuthorityClientTest.cfg.  The default values should work as set.
31
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:
34
35$ unset http_proxy
36
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
46Tests can be run individually e.g.
47
48$ python ./test_attributeauthorityclient.py AttributeAuthorityClientTestCase.test01GetHostInfo
49
50P J Kershaw 24/12/08
Note: See TracBrowser for help on using the repository browser.