Ignore:
Timestamp:
27/02/09 13:33:22 (11 years ago)
Author:
pjkersha
Message:

Updates to licence info and README for unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/MyProxyClient/test/README

    r4820 r5048  
    11MyProxyClient Unit Tests 
    22======================== 
    3 To set-up this test, A MyProxy server process must be running to test against. 
    4 See http://grid.ncsa.uiuc.edu/myproxy/ for guidance on obtaining and installing 
    5 it. 
     3The unit test module is divided into two unit test classes:  
    64 
    7 To run these tests: 
     5MyProxyClientLiveTestCase 
     6MyProxyClientInterfaceTestCase 
    87 
    9 1) Start myproxy-server on it's host machine e.g. as root run, 
     8The first, MyProxyClientLiveTestCase depends on connection to a myproxy-server. 
     9The test certificates and files in this directory are for illustration only. 
     10They must be replaced with certificates issued by a CA that the myproxy-server 
     11is configured to trust. See http://grid.ncsa.uiuc.edu/myproxy/ for guidance on  
     12installing and configuring MyProxy. 
     13 
     14The second test class MyProxyClientInterfaceTestCase, performs sanity checks on 
     15the getting and setting of attributes.  These tests can be run without access 
     16to a myproxy-server service. 
     17 
     181) To run MyProxyClientLiveTestCase: 
     19 
     201.1) Start myproxy-server on it's host machine e.g. as root run, 
    1021 
    1122$ myproxy-server 
    1223 
    13 2) Edit myProxyClient.cfg and set the hostname element to the fully 
     241.2) Edit myProxyClient.cfg and set the hostname element to the fully 
    1425qualified domain name of the MyProxy host OR alternatively set the environment 
    15 variable MYPROXY_SERVER to the host name. 
     26variable MYPROXY_SERVER to the host name e.g.: 
     27 
     28$ export MYPROXY_SERVER=mytest.myproxy-server.somewhere 
     29 
     30The environment variable setting will override any setting in the config file.   
     31You may also need to set the MYPROXY_SERVER_DN environment variable and/or  
     32experiment with the serverDN and serverCNPrefix config file settings to allow  
     33for any mismatch between the MyProxy server certificate Distinguished Name and  
     34the hostname of the host server. 
    1635 
    1736The tests involve uploading new credentials, changing password settings and 
    18 finally removing the credentials.  Make sure the MyProxy server you are using 
    19 for tests is configured to allow you to carry out these operations.  If  
    20 necessary download and install a copy of MyProxy for test purposes.  Tests 
    21 may be run individually e.g. to test myProxy logon only.  See 4) 
     37finally removing these credentials from the MyP.  Make sure the MyProxy server you are using 
     38for tests is configured to allow you to carry out these operations and that 
     39you have test certificates issued by a CA that the MyProxy server is  
     40configured to trust.  If necessary download and install a copy of MyProxy for  
     41test purposes.  Tests may be run individually e.g. to test myProxy logon only.  
     42See 1.4) 
    2243 
    23 3) Run the tests with the command: 
     441.3) Run the tests with the command: 
    2445 
    25 $ python ./test_myproxyclient.py 
     46$ python ./test_myproxyclient.py MyProxyClientLiveTestCase 
    2647 
    27 4) To run individual tests give the test method name: 
     481.4) To run individual tests give the test method name: 
    2849 
    29 $ python ./test_myproxyclient.py MyProxyClientTestCase.test1Store 
     50$ python ./test_myproxyclient.py MyProxyClientLiveTestCase.test1Store 
    3051 
    3152 * Note that some tests are dependent on the output of previous tests.   
     
    4263 * See the installation guide for MyProxy trouble shooting information. 
    4364 
    44 Certificates and private keys are from a test CA and are not for use production 
    45 use. 
     652) To run MyProxyClientInterfaceTestCase only: 
    4666 
    47 P J Kershaw 12/12/08 
     67You may wish to run these tests alone if you don't have a configuration set-up 
     68to connect to a myproxy-server. 
     69 
     70Nb. Example certificates and private keys provided are from a test CA and are  
     71not for production use. 
     72 
     73$ python ./test_myproxyclient.py MyProxyClientInterfaceTestCase 
     74 
     753) To run MyProxyClientLiveTestCase and MyProxyClientInterfaceTestCase: 
     76 
     77$ python ./test_myproxyclient.py MyProxyClientLiveTestCase 
     78 
     79 
     80P J Kershaw 27/02/09 
Note: See TracChangeset for help on using the changeset viewer.