Changeset 2456

Show
Ignore:
Timestamp:
09/17/08 13:07:58 (4 months ago)
Author:
dbuss
Message:

added new remote provision/deprovision test

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/otis.test/src/org/bandit/otis/test/SimpleLocalRoleTest.java

    r2444 r2456  
    195195                 
    196196        } 
     197         
     198        public void testProvisionRemoteRoles() 
     199        { 
     200                try 
     201                { 
     202                        remoteService.authenticate( Constants.OTIS_USERNAME_PASSWORD_AUTH_METHOD, UsernamePasswordAuthMethod.getMaterialResponse( "otisTest", "otisTest")); 
     203                         
     204                        _xProvisionDeprovision( remoteService, null, "SimpleRoleProvisionTest", true); 
     205                         
     206                        _xProvisionDeprovision( remoteService, remoteService.getAuthEntityId(), "SimpleRoleProvisionTest", true); 
     207                         
     208                        _xProvisionDeprovision( remoteService, remoteService.getAuthEntityId(), "GarbageProvisionTest", false); 
     209                         
     210                         
     211                } 
     212                catch (AuthSessionException e) 
     213                { 
     214                        e.printStackTrace(); 
     215                        fail(e.getMessage()); 
     216                } 
     217                 
     218        } 
     219         
    197220         
    198221        public void testRemoteGetRoles()