Ignore:
Timestamp:
11/03/10 14:55:42 (11 years ago)
Author:
pjkersha
Message:
  • Working Attribute Authority client unit tests. Configuration parameters such as issuer and flags to test query timestamp and SAML version string have now been moved out of the Attribute Authority to the generic SAML subject Query middleware interface ndg.security.server.wsgi.saml.SOAPQueryInterfaceMiddleware. This could be moved into the SAML egg at a later stage. The AuthzDecisionQuery? interface should be retested to allow for these changes.
File:
1 edited

Legend:

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

    r6720 r6721  
    4646    PROPERTIES_FILENAME = 'test_attributeauthority.cfg' 
    4747    PROPERTIES_FILEPATH = path.join(THIS_DIR, PROPERTIES_FILENAME) 
    48     ISSUER_NAME = '/O=My Organisation/OU=Centre/CN=Attribute Authority' 
    4948    ASSERTION_LIFETIME = "86400" 
    5049 
     
    5453        self.assert_(aa) 
    5554        self.assert_(aa.assertionLifetime == 3600) 
    56         self.assert_(aa.issuerName == cls.ISSUER_NAME) 
    5755         
    5856    def _createAttributeAuthorityHelper(self): 
     
    6664                                       'AttributeInterface') 
    6765         
    68         aa = AttributeAuthority.fromProperties(issuerName=cls.ISSUER_NAME, 
     66        aa = AttributeAuthority.fromProperties( 
    6967                    assertionLifetime=cls.ASSERTION_LIFETIME, 
    7068                    attributeInterface_className=attributeInterfaceClassName) 
     
    8179        # Check lifetime property converted from string input to float 
    8280        self.assert_(aa.assertionLifetime == float(cls.ASSERTION_LIFETIME)) 
    83         self.assert_(aa.issuerName == cls.ISSUER_NAME) 
    8481        self.assert_(isinstance(aa.attributeInterface, AttributeInterface)) 
    8582 
     
    9289        self.assert_(aa2) 
    9390        self.assert_(aa2.assertionLifetime == aa.assertionLifetime) 
    94         self.assert_(aa2.issuerName == aa.issuerName) 
    9591        self.assert_(isinstance(aa2.attributeInterface, AttributeInterface)) 
    9692     
     
    322318            '/O=ESG/OU=NCAR/CN=Gateway') 
    323319         
    324         attributeInterface.setProperties(samlAssertionLifetime=28800., 
    325                                 issuerName='/CN=Attribute Authority/O=Site A') 
     320        attributeInterface.setProperties(samlAssertionLifetime=28800.) 
    326321         
    327322        attributeInterface.samlSubjectSqlQuery = ( 
     
    414409         
    415410            SQLAlchemyAttributeInterfaceTestCase.ATTRIBUTE_NAMES[0]:  
    416                 SQLAlchemyAttributeInterfaceTestCase.SAML_ATTRIBUTES_SQLQUERY                     
     411                SQLAlchemyAttributeInterfaceTestCase.SAML_ATTRIBUTES_SQLQUERY 
    417412        } 
    418413         
     
    427422            '/O=ESG/OU=NCAR/CN=Gateway') 
    428423         
    429         attributeInterface.setProperties(samlAssertionLifetime=28800., 
    430                                 issuerName='/CN=Attribute Authority/O=Site A') 
     424        attributeInterface.setProperties(samlAssertionLifetime=28800.) 
    431425         
    432426        attributeInterface.samlSubjectSqlQuery = ( 
Note: See TracChangeset for help on using the changeset viewer.