Ignore:
Timestamp:
11/03/10 09:29:21 (10 years ago)
Author:
pjkersha
Message:

Refactoring Attribute Authority to remove NDG Attribute Certificate and role mapping code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/attributeauthority/test_attributeauthority.py

    r6686 r6719  
    2929    CaseSensitiveConfigParser) 
    3030from ndg.security.server.attributeauthority import (AttributeAuthority,  
    31     SQLAlchemyAttributeInterface, InvalidAttributeFormat) 
     31    SQLAlchemyAttributeInterface, InvalidAttributeFormat, AttributeInterface) 
    3232 
    3333from ndg.saml.saml2.core import (Response, Attribute, SAMLVersion, Subject,  
     
    5454        self.assert_(aa.issuerName == cls.ISSUER_NAME) 
    5555         
    56     def test02FromPropertis(self): 
     56    def test02FromProperties(self): 
    5757         
    5858        # Casts from string to float 
    5959        assertionLifetime = "86400" 
    6060        issuerName = 'My issuer' 
     61        attributeInterfaceClassName = ('ndg.security.server.attributeauthority.' 
     62                                       'AttributeInterface') 
     63         
    6164        aa = AttributeAuthority.fromProperties(issuerName=issuerName, 
    62                                             assertionLifetime=assertionLifetime) 
     65                    assertionLifetime=assertionLifetime, 
     66                    attributeInterface_className=attributeInterfaceClassName) 
     67         
    6368        self.assert_(aa) 
    6469        self.assert_(aa.assertionLifetime == float(assertionLifetime)) 
    6570        self.assert_(aa.issuerName == issuerName) 
     71        self.assert_(isinstance(aa.attributeInterface, AttributeInterface)) 
    6672 
    6773 
Note: See TracChangeset for help on using the changeset viewer.