Ignore:
Timestamp:
30/11/09 16:30:24 (11 years ago)
Author:
pjkersha
Message:

Re-issue 1.3.3 release:

  • uses SQLAlchemy test user database for authz_lite integration tests
  • important fix for ndg.security.common.saml_utils.bindings.AttributeQuerySOAPBinding: set 'nameFormat' attribute not 'format' for attributes in AttributeQuery?.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg_security_test/ndg/security/test/config/attributeauthority/sitea/siteAUserRoles.py

    r6064 r6067  
    2525                                                    AttributeReleaseDenied,  
    2626                                                    UserIdNotKnown) 
     27from ndg.security.test.unit import BaseTestCase 
    2728 
    2829 
    2930class TestUserRoles(AttributeInterface): 
    3031    """Test User Roles class dynamic import for Attribute Authority""" 
    31     ATTRIBUTE_NAMES = ( 
    32         "urn:siteA:security:authz:1.0:attr", 
    33     ) 
    34      
    35     ATTRIBUTE_VALUES = ( 
    36         'urn:siteA:security:authz:1.0:attr:postdoc', 
    37         'urn:siteA:security:authz:1.0:attr:staff',  
    38         'urn:siteA:security:authz:1.0:attr:undergrad',  
    39         'urn:siteA:security:authz:1.0:attr:coapec', 
    40         'urn:siteA:security:authz:1.0:attr:rapid' 
    41     ) 
     32    ATTRIBUTE_NAMES = BaseTestCase.ATTRIBUTE_NAMES 
     33    ATTRIBUTE_VALUES = BaseTestCase.ATTRIBUTE_VALUES 
    4234 
    4335    SAML_ATTRIBUTE_NAMES = ATTRIBUTE_NAMES + ( 
     
    5547     
    5648    SAML_ATTRIBUTE_FRIENDLY_NAMES = ('',)*len(ATTRIBUTE_NAMES) + ( 
    57         "emailAddress", 
     49        "EmailAddress", 
    5850        "FirstName", 
    5951        "LastName" 
    6052    ) 
    6153    SAML_ATTRIBUTE_FORMATS = (SAMLConstants.XSD_NS+"#"+\ 
    62                             XSStringAttributeValue.TYPE_LOCAL_NAME,) * \ 
    63                             len(SAML_ATTRIBUTE_NAMES) 
     54                              XSStringAttributeValue.TYPE_LOCAL_NAME,) * \ 
     55                              len(SAML_ATTRIBUTE_NAMES) 
    6456    SAML_ATTRIBUTES = [] 
    6557     
     
    8274     
    8375    VALID_USER_IDS = ("https://openid.localhost/philip.kershaw", 
    84                       "https://localhost:7443/openid/PhilipKershaw") 
    85     VALID_REQUESTOR_IDS = ( 
    86         X500DN.fromString("/O=Site A/CN=Authorisation Service"),  
    87         X500DN.fromString("/O=Site B/CN=Authorisation Service"), 
    88         X500DN.fromString('/CN=test/O=NDG/OU=BADC') 
    89     ) 
     76                      BaseTestCase.OPENID_URI) 
     77    VALID_REQUESTOR_IDS = BaseTestCase.VALID_REQUESTOR_IDS 
    9078     
    9179    ISSUER_NAME = "/O=Site A/CN=Attribute Authority" 
Note: See TracChangeset for help on using the changeset viewer.