Ignore:
Timestamp:
31/10/08 13:41:54 (11 years ago)
Author:
pjkersha
Message:

Updated sessionmanager and attributeauthorityclient unit test readmes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/attributeauthorityclient/README

    r4129 r4403  
    33The test client connects to two different test Attribute Authorities 
    44corresponding to the fictitious Service Providers Site "A" and Site "B".  Each 
    5 has its own respective properties file.  The services require access to specific 
    6 security settings so the following should be done, if not running as root: 
     5has its own respective properties file.   
    76 
    8 i) Set the NDGSEC_DIR environment variable set to a local dir 
    9 ii) Copy /ndg/security/server/conf and /ndg/security/server/logs directories to this dir 
    10 iii) Set the NDGSEC_AA_PROPFILEPATH environment variable to the file with the server config 
    11  - i.e. siteAAttAuthorityProperties.xml (the same env var should be used for the siteB config file) 
     7These services must be started before running the unit tests.  Start a terminal 
     8in this directory and run: 
    129 
    13 These services must be started before 
    14 running the unit tests.  Start a terminal in this directory and run: 
    15  
    16 $ python ./siteAServer.py 
     10$ python ./wsgi/siteAServerApp.py 
    1711 
    1812...and in a separate terminal: 
    1913 
    20 $ python ./siteBServer.py 
     14$ python ./wsgi/siteBServerApp.py 
    2115 
    22 Note however that the siteBServer is only needed for tests for getting mapped  
    23 certificates: test7GetMappedAttCert and test8GetMappedAttCertStressTest 
     16Configuration for these services is held in the files ./wsgi/site-a.ini and 
     17./wsgi/site-b.ini respectively. 
    2418 
    25 Settings for the client to these services are configured with  
    26 attAuthorityClientTest.cfg.  The default values should work as set - although these assume 
    27 that tcpmon is running in the system - with local port = 4900 and server port = 5000.  NB, 
    28 problems may occur due to proxy settings (Access Denied errors); no proxy should be specified for the ports used by 
    29 the services - i.e. use: 
     19Note however that the siteBServerApp.py is only needed for tests for getting  
     20mapped attribute certificates: test7GetMappedAttCert and  
     21test8GetMappedAttCertStressTest 
    3022 
    31 export no_proxy=localhost:5100,localhost:5000,localhost:4900  
     23Settings for the client to these services are configured with the file 
     24attAuthorityClientTest.cfg.  The default values should work as set. 
    3225 
    33 Run the unit tests script AttAuthorityClientTest.py from another terminal: 
     26Problems may occur due to proxy settings (Access Denied errors); no proxy  
     27should be specified for the ports used by the services - i.e. use: 
    3428 
    35 $ python ./AttAuthorityClientTest.py 
     29$ unset http_proxy 
     30 
     31or set specific exceptions according to the address+port of the services used: 
     32 
     33$ export no_proxy=localhost:5100,localhost:5000 
     34 
     35Run the unit tests script test_attributeauthorityclient.py from another 
     36terminal: 
     37 
     38$ python ./test_attributeauthorityclient.py 
    3639 
    3740Tests can be run individually e.g. 
    3841 
    39 $ python ./AttAuthorityClientTest.py AttAuthorityClientTestCase.test1GetX509Cert 
     42$ python ./test_attributeauthorityclient.py AttributeAuthorityClientTestCase.test1GetX509Cert 
     43 
     44Running Services with the Twisted Application Server 
     45==================================================== 
     46Services have been ported from the Twisted Application Server to run with a 
     47WSGI wrapper under Paste.  Paste scripts are held in the wsgi/ sub-directory 
     48and the previous Twisted based ones in twisted/.  These are untested and may 
     49be removed from future releases of NDG-Security. 
     50 
     51P J Kershaw 31/10/08 
Note: See TracChangeset for help on using the changeset viewer.