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

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

Update README and user certificate. SVN tag current set to true in setup.cfg - set to false for final release.

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 myProxyClient.cfg 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
17The tests involve uploading new credentials, changing password settings and
18finally removing the credentials.  Make sure the MyProxy server you are using
19for tests is configured to allow you to carry out these operations.  If
20necessary download and install a copy of MyProxy for test purposes.  Tests
21may be run individually e.g. to test myProxy logon only.  See 4)
22
233) Run the tests with the command:
24
25$ python ./test_myproxyclient.py
26
274) To run individual tests give the test method name:
28
29$ python ./test_myproxyclient.py MyProxyClientTestCase.test1Store
30
31 * Note that some tests are dependent on the output of previous tests. 
32 * test1Store adds a new credential to the repository.  Running all the tests
33   together as in 3) will ensure the credential is removed afterwards.  To
34   check the existence of the credential after the test run test3Info:
35   
36   $ python ./test_myproxyclient.py MyProxyClientTestCase.test3Info
37   
38   or use MyProxy client commands on the MyProxy host: myproxy-info,
39   myproxy-destroy.  If these fail, the content of /var/myproxy on the
40   target host can be checked to see if testuser credentials still exist.
41 * See myProxyClientTest.cfg configuration file to change test parameters.
42 * See the installation guide for MyProxy trouble shooting information.
43
44Certificates and private keys are from a test CA and are not for use production
45use.
46
47P J Kershaw 12/12/08
Note: See TracBrowser for help on using the repository browser.