Ignore:
Timestamp:
01/11/10 16:30:22 (10 years ago)
Author:
pjkersha
Message:

Working and tested version with functionality for adding custom attribute value types and functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_xacml/ndg/xacml/test/policy/test_policy.py

    r7666 r7682  
    1717 
    1818from ndg.xacml.core.policy import Policy 
     19from ndg.xacml.core.functions import functionMap 
    1920from ndg.xacml.core.attributedesignator import SubjectAttributeDesignator 
    2021from ndg.xacml.core.attributeselector import AttributeSelector 
     
    2627from ndg.xacml.test import (XACML_NDGTEST1_FILEPATH, THIS_DIR,  
    2728                            GroupRoleAttributeValue,  
    28                             ETreeGroupRoleDataTypeReader) 
     29                            ETreeGroupRoleDataTypeReader, 
     30                            GroupRoleBag, 
     31                            GroupRoleAtLeastOneMemberOf) 
    2932                                
    3033     
     
    275278                                ETreeGroupRoleDataTypeReader) 
    276279         
     280        # Add extra matching and bag functions 
     281        functionMap['urn:grouprole-bag'] = GroupRoleBag 
     282        functionMap['urn:grouprole-at-least-one-member-of' 
     283                    ] = GroupRoleAtLeastOneMemberOf 
     284                             
    277285        PolicyReader = ReaderFactory.getReader(Policy) 
    278286        policy = PolicyReader.parse(self.__class__.XACML_ESGFTEST1_FILEPATH) 
Note: See TracChangeset for help on using the changeset viewer.