source: TI12-security/trunk/python/ndg.security.test/ndg/security/test/credentialwallet/README @ 4734

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

Refactored Session Manager unit tests separating out test files into the config dir.

Line 
1Unit tests for NDG Credential Wallet Module
2===========================================
3Test Attribute Authorities services must be started for *AttCert* named tests.
4 
51) Two test Attribute Authority services are required.  These services must be
6started before running the unit tests.  Start a terminal in this directory and
7run:
8
9$ python ../config/attributeauthority/sitea/siteAServerApp.py
10
11...and in a separate terminal:
12
13$ python ../config/attributeauthority/siteb/siteBServerApp.py
14
15Configuration for these services is held in the files
16
17../config/attributeauthority/sitea/site-a.ini and
18../config/attributeauthority/siteb/site-b.ini
19
20respectively.
21
225) Run the tests with the command:
23
24$ python ./test_credentialwallet.py
25
266) To run individual tests give the test method name:
27
28$ python ./test_credentialwallet.py CredentialWalletTestCase.test1ReadOnlyClassVariables
29
30Finally,
31 * See credWalletTest.cfg sets the unittest configuration
32 * credWallet.cfg sets the Credential Wallet's configuration
33
34Troubleshooting:
35 * http_proxy environment variable settings can cause connection problems to
36the Attribute Authorities.  unset http_proxy or set no_proxy:
37
38$ export no_proxy=http://localhost:5000/AttributeAuthority,http://localhost:5100/AttributeAuthority
39
Note: See TracBrowser for help on using the repository browser.