Ignore:
Timestamp:
22/05/06 09:38:21 (14 years ago)
Author:
pjkersha
Message:

Working version of Gatekeeper - supports basic access control: 3 WS methods supported:

matchingRole = readAccess(attCert)
matchingRole = writeAcess(attCert)
matchingRole = executeAccess(attCert)

In each case the roles contained in the attCert are checked. If one matches for the required
access, it is returned. The first matching one encountered is the one returned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/Tests/GatekeeperTest.py

    r930 r970  
    1919 
    2020 
    21 class GkResrcURIinterface(GatekeeperResrcURI): 
     21class GkResrcinterface(GatekeeperResrc): 
    2222    """Gatekeeper interface test class""" 
    2323     
     
    3939    def setUp(self): 
    4040        try: 
    41             self.gk = Gatekeeper(resrcURI='somewhere', 
    42                                  resrcURImodFilePath='./GatekeeperTest.py', 
    43                                  resrcURImodName='GatekeeperTest', 
    44                                  resrcURIclassName='GkResrcURIinterface')  
     41            self.gk = Gatekeeper(resrcID='somewhere', 
     42                                 resrcModFilePath='./GatekeeperTest.py', 
     43                                 resrcModName='GatekeeperTest', 
     44                                 resrcClassName='GkResrcinterface')  
    4545        except Exception, e: 
    4646            self.fail(str(e)) 
     
    6666        try: 
    6767            self.gk.readProperties('gatekeeperProperties.xml') 
    68             self.gk.initResrcURIinterface() 
     68            self.gk.initResrcinterface() 
    6969             
    7070            print "Role List Permissions: %s" % self.gk(['nextmap', 'synop']) 
Note: See TracChangeset for help on using the changeset viewer.