Ignore:
Timestamp:
29/09/08 16:05:29 (11 years ago)
Author:
pjkersha
Message:

Working unit tests for WSGI based Attribute Authority.

  • Altered so that all Attribute Config is picked up from the Paste ini file. Separate cfg or xml based config file is still supported.

TODO:

  • Simplify unit test config for client.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/attAuthority/wsgi/site-b.ini

    r4238 r4245  
    1212 
    1313[DEFAULT] 
    14 #wsseCfgFilePath = $NDGSEC_AACLNT_UNITTEST_DIR/wssecurity.cfg 
     14# WS-Security settings in THIS file 
    1515wsseCfgFilePath = %(here)s/site-a.ini 
    1616wsseCfgFileSection = WS-Security 
     17 
     18# Attribute Authority settings 
     19# 'name' setting MUST agree with map config file 'thisHost' name attribute 
     20attributeAuthority.name: Site B 
     21 
     22# Lifetime is measured in seconds 
     23attributeAuthority.attCertLifetime: 28800  
     24 
     25# Allow an offset for clock skew between servers running  
     26# security services. NB, measured in seconds - use a minus sign for time in the 
     27# past 
     28attributeAuthority.attCertNotBeforeOff: 0 
     29 
     30# All Attribute Certificates issued are recorded in this dir 
     31attributeAuthority.attCertDir: $NDGSEC_AACLNT_UNITTEST_DIR/attCertLog 
     32 
     33# Files in attCertDir are stored using a rotating file handler 
     34# attCertFileLogCnt sets the max number of files created before the first is  
     35# overwritten 
     36attributeAuthority.attCertFileName: ac.xml 
     37attributeAuthority.attCertFileLogCnt: 16 
     38attributeAuthority.dnSeparator:/ 
     39 
     40# Location of role mapping file 
     41attributeAuthority.mapConfigFile: $NDGSEC_AACLNT_UNITTEST_DIR/siteBMapConfig.xml 
     42 
     43# Settings for custom AAUserRoles derived class to get user roles for given  
     44# user ID 
     45attributeAuthority.userRolesModFilePath: $NDGSEC_AACLNT_UNITTEST_DIR 
     46attributeAuthority.userRolesModName: siteBUserRoles 
     47attributeAuthority.userRolesClassName: TestUserRoles 
     48 
     49# Config for XML signature of Attribute Certificate 
     50attributeAuthority.signingPriKeyFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteB-aa.key 
     51attributeAuthority.signingCertFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteB-aa.crt 
     52attributeAuthority.caCertFilePathList: $NDGSEC_AACLNT_UNITTEST_DIR/ca/ndg-test-ca.crt 
    1753 
    1854[server:main] 
     
    3268paste.filter_app_factory = ndg.security.server.wsgi.soap:SOAPBindingMiddleware 
    3369ServiceSOAPBindingClass = ndg.security.server.zsi.attributeauthority.AttributeAuthorityWS 
     70ServiceSOAPBindingPropPrefix = AttributeAuthority 
     71AttributeAuthority.propPrefix = attributeAuthority 
     72AttributeAuthority.propFilePath = $NDGSEC_AACLNT_UNITTEST_DIR/wsgi/site-b.ini 
    3473referencedFilters = wsseSignatureVerificationFilter01 
    3574path = /AttributeAuthority 
Note: See TracChangeset for help on using the changeset viewer.