Changeset 6721 for TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/attributeauthority/test_attributeauthority.py
- Timestamp:
- 11/03/10 14:55:42 (11 years ago)
- 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 46 46 PROPERTIES_FILENAME = 'test_attributeauthority.cfg' 47 47 PROPERTIES_FILEPATH = path.join(THIS_DIR, PROPERTIES_FILENAME) 48 ISSUER_NAME = '/O=My Organisation/OU=Centre/CN=Attribute Authority'49 48 ASSERTION_LIFETIME = "86400" 50 49 … … 54 53 self.assert_(aa) 55 54 self.assert_(aa.assertionLifetime == 3600) 56 self.assert_(aa.issuerName == cls.ISSUER_NAME)57 55 58 56 def _createAttributeAuthorityHelper(self): … … 66 64 'AttributeInterface') 67 65 68 aa = AttributeAuthority.fromProperties( issuerName=cls.ISSUER_NAME,66 aa = AttributeAuthority.fromProperties( 69 67 assertionLifetime=cls.ASSERTION_LIFETIME, 70 68 attributeInterface_className=attributeInterfaceClassName) … … 81 79 # Check lifetime property converted from string input to float 82 80 self.assert_(aa.assertionLifetime == float(cls.ASSERTION_LIFETIME)) 83 self.assert_(aa.issuerName == cls.ISSUER_NAME)84 81 self.assert_(isinstance(aa.attributeInterface, AttributeInterface)) 85 82 … … 92 89 self.assert_(aa2) 93 90 self.assert_(aa2.assertionLifetime == aa.assertionLifetime) 94 self.assert_(aa2.issuerName == aa.issuerName)95 91 self.assert_(isinstance(aa2.attributeInterface, AttributeInterface)) 96 92 … … 322 318 '/O=ESG/OU=NCAR/CN=Gateway') 323 319 324 attributeInterface.setProperties(samlAssertionLifetime=28800., 325 issuerName='/CN=Attribute Authority/O=Site A') 320 attributeInterface.setProperties(samlAssertionLifetime=28800.) 326 321 327 322 attributeInterface.samlSubjectSqlQuery = ( … … 414 409 415 410 SQLAlchemyAttributeInterfaceTestCase.ATTRIBUTE_NAMES[0]: 416 SQLAlchemyAttributeInterfaceTestCase.SAML_ATTRIBUTES_SQLQUERY 411 SQLAlchemyAttributeInterfaceTestCase.SAML_ATTRIBUTES_SQLQUERY 417 412 } 418 413 … … 427 422 '/O=ESG/OU=NCAR/CN=Gateway') 428 423 429 attributeInterface.setProperties(samlAssertionLifetime=28800., 430 issuerName='/CN=Attribute Authority/O=Site A') 424 attributeInterface.setProperties(samlAssertionLifetime=28800.) 431 425 432 426 attributeInterface.samlSubjectSqlQuery = (
Note: See TracChangeset
for help on using the changeset viewer.