Ignore:
Timestamp:
09/01/08 13:37:16 (13 years ago)
Author:
pjkersha
Message:

Improvements to Attribute Authority SOAP client unit tests. Tests now include test PKI files

security/python/ndg.security.test/ndg/security/test/attAuthority/AttAuthorityClient.py,
security/python/ndg.security.test/ndg/security/test/attAuthority/attAuthorityClient.cfg:

  • improved comments and added NDGSEC_AACLNT_UNITTEST_DIR env to enable running of tests from any dir
  • simplified WSSE settings for use of proxy cert / non-proxy cert.

security/python/ndg.security.test/ndg/security/test/attAuthority/siteAServer.py,
security/python/ndg.security.test/ndg/security/test/attAuthority/siteBServer.py:
replace equivalent .sh shell scripts with python equivalents based on a hack of twistd source code.

security/python/ndg.security.test/ndg/security/test/attAuthority/siteAServer.sh,
security/python/ndg.security.test/ndg/security/test/attAuthority/siteBServer.sh:
removed and replaced with above python versions.

File:
1 edited

Legend:

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

    r2058 r3189  
    11Unit tests for Attribute Authority Web Service Client 
    2 _____________________________________________________ 
     2===================================================== 
     3The test client connects to two different test Attribute Authorities 
     4corresponding to the fictitious Service Providers Site "A" and Site "B".  These 
     5services must be started before running the unit tests.  Start a terminal in 
     6this directory and run 
    37 
    4 Before running the tests start the Attribute Authority web services running: 
    58 
    6 $ ./siteAServer.sh 
     9$ python ./siteAServer.py 
    710 
    8 and in a separate terminal: 
     11...and in a separate terminal: 
    912 
    10 $ ./siteBServer.sh 
     13$ python ./siteBServer.py 
    1114 
    12 The siteBServer is only needed for tests for getting mapped certificates: 
    13 test6GetMappedCert 
     15Note however that the siteBServer is only needed for tests for getting mapped  
     16certificates: test7GetMappedAttCert and test8GetMappedAttCertStressTest 
    1417 
    15 Run the unit tests script AttAuthorityClientTest.py from another terminal. 
     18Run the unit tests script AttAuthorityClientTest.py from another terminal: 
     19 
     20$ python ./AttAuthorityClientTest.py 
     21 
     22Tests can be run individually e.g. 
     23 
     24$ python ./AttAuthorityClientTest.py AttAuthorityClientTestCase.test1GetX509Cert 
Note: See TracChangeset for help on using the changeset viewer.