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/test_pdp.py

    r7665 r7666  
    1 ''' 
    2 Created on 28 Oct 2010 
     1#!/usr/bin/env python 
     2"""NDG XACML PDP unit tests  
    33 
    4 @author: pjkersha 
    5 ''' 
     4NERC DataGrid 
     5""" 
     6__author__ = "P J Kershaw" 
     7__date__ = "28/10/10" 
     8__copyright__ = "(C) 2010 Science and Technology Facilities Council" 
     9__contact__ = "Philip.Kershaw@stfc.ac.uk" 
     10__license__ = "BSD - see LICENSE file in top-level directory" 
     11__contact__ = "Philip.Kershaw@stfc.ac.uk" 
     12__revision__ = "$Id$" 
    613import unittest 
     14import logging 
     15logging.basicConfig(level=logging.DEBUG) 
    716 
    817from ndg.xacml.core.context.result import Decision 
     
    143152        for result in response.results: 
    144153            self.failIf(result.decision != Decision.PERMIT,  
    145                         "Expecting PERMIT decision")          
    146  
    147  
     154                        "Expecting PERMIT decision")             
     155         
     156         
    148157if __name__ == "__main__": 
    149158    unittest.main() 
Note: See TracChangeset for help on using the changeset viewer.