source: TI12-security/trunk/python/MyProxyClient/test/README @ 4624

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

#941: refactored to use ini file instead of XML for config.

Line 
1MyProxyClient Unit Tests
2========================
3To set-up this test, A MyProxy server process must be running to test against.
4See http://grid.ncsa.uiuc.edu/myproxy/ for guidance on obtaining and installing
5it.
6
7To run these tests:
8
91) Start myproxy-server on it's host machine e.g. as root run,
10
11$ myproxy-server
12
132) Edit myProxyProperties.xml and set the hostname element to the fully
14qualified domain name of the MyProxy host OR alternatively set the environment
15variable MYPROXY_SERVER to the host name.
16
173) Run the tests with the command:
18
19$ python ./test_myproxyclient.py
20
214) To run individual tests give the test method name:
22
23$ python ./test_myproxyclient.py MyProxyClientTestCase.test1Store
24
25 * Note that some tests are dependent on the output of previous tests. 
26 * test1Store adds a new credential to the repository.  Running all the tests
27   together as in 3) will ensure the credential is removed afterwards.  To
28   check the existence of the credential after the test run test3Info:
29   
30   $ python ./test_myproxyclient.py MyProxyClientTestCase.test3Info
31   
32   or use MyProxy client commands on the MyProxy host: myproxy-info,
33   myproxy-destroy.  If these fail, the content of /var/myproxy on the
34   target host can be checked to see if testuser credentials still exist.
35 * See myProxyClientTest.cfg configuration file to change test parameters.
36 * See the installation guide for MyProxy trouble shooting information.
37
38P J Kershaw 12/12/08
Note: See TracBrowser for help on using the repository browser.