Ignore:
Timestamp:
28/10/10 16:00:42 (10 years ago)
Author:
pjkersha
Message:

Started testing PDP with custom Group/Role? Attribute Value type. Custom match and Bag functions are needed to enable evaluation of rules using the custom type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_xacml/ndg/xacml/test/context/__init__.py

    r7665 r7666  
    9090    def _createRequestCtx(resourceId,  
    9191                          includeSubject=True, 
    92                           subjectRoles=('staff',), 
     92                          subjectRoles=None, 
    9393                          roleAttributeId=ROLE_ATTRIBUTE_ID, 
    9494                          action='read'): 
    9595        """Create an example XACML Request Context for tests""" 
     96        if subjectRoles is None: 
     97            subjectRoles = ('staff',) 
     98             
    9699        request = Request() 
    97100         
Note: See TracChangeset for help on using the changeset viewer.