org.edg.security.voms.service.admin
Class VOMSAdminSoapBindingImplTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.edg.security.voms.service.admin.VOMSAdminSoapBindingImplTest
All Implemented Interfaces:
junit.framework.Test

public class VOMSAdminSoapBindingImplTest
extends junit.framework.TestCase

Unit test cases for the VOMSAdminSoapBindingImpl class.

Version:
$Name: v0_7_0 $
Author:
Karoly Lorentey, Akos Frohner
See Also:
VOMSAdminSoapBindingImpl

Field Summary
private static org.apache.log4j.Logger log
           
private static java.lang.String newCAName
           
private  java.lang.String newGroupName
           
private  java.lang.String rootGroupName
           
private  VOMSAdminSoapBindingImpl v
           
private  java.lang.String voName
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
VOMSAdminSoapBindingImplTest(java.lang.String name)
           
 
Method Summary
 boolean compareACLs(ACLEntry[] acl1, ACLEntry[] acl2)
           
 void setAuthzTest(java.lang.String clientName, java.lang.String clientIssuer, java.lang.String[] attributes)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void test000startService()
           
 void test001databaseQuery()
           
 void test002containerNamingScheme()
           
 void test002databaseBootstrapCA()
           
 void test003databaseVOGroup()
           
 void test004databaseBootstrapAdmin()
           
 void test006VOGroupName()
           
 void test007getVOName()
           
 void test008listCAsHasVirtualCA()
           
 void test009createTestCA()
           
 void test010createTestUser()
           
 void test011getUser()
           
 void test012createUserAuthzErrorWithKnownUser()
           
 void test012setUser()
           
 void test013checkSetUser()
           
 void test013createUserAuthzErrorWithUnknownUser()
           
 void test014getUserAuthzErrorWithKnownUser()
           
 void test014getUserAuthzErrorWithUnknownUser()
           
 void test015createUserWithUnknownCA()
           
 void test016createUserWithNullCA()
           
 void test017checkThatNewUserIsInVOGroup()
           
 void test030createSomeMoreTestUsers()
           
 void test031checkSomeMoreTestUsers()
           
 void test040createBadGroupsVOGroup()
           
 void test041createBadGroupsBogusName()
           
 void test042createBadGroupsWithoutParent()
           
 void test043createBadGroupsNullName()
           
 void test044createBadGroupWithNullParent()
           
 void test045failingCreateGroupAsTestUser()
           
 void test046allowTestuserToCreateGroup()
           
 void test047createGroupAsTestUser()
           
 void test048checkACL()
           
 void test049cleanupAfterNewGroupACL()
           
 void test050cleanUpGoodGroup()
           
 void test051createGoodGroup()
           
 void test052checkGoodGroup()
           
 void test053deleteGoodGroup()
           
 void test054checkDeletedGroup()
           
 void test055createGoodGroupWithNullParent()
           
 void test056checkGoodGroupWithNullParent()
           
 void test057createBogusSubgroup()
           
 void test060createNestedGroups()
           
 void test100createRoleWithBogusName()
           
 void test101createRoleWithNullName()
           
 void test102createRoleWithVOGroupName()
           
 void test103createAGoodRole()
           
 void test104checkNewRole()
           
 void test105createAnotherRoleWithTheSameName()
           
 void test106listUsersWithNonexistentRole()
           
 void test107listUsersWithEmptyRole()
           
 void test108listUsersWithBogusRole()
           
 void test109listUsersWithNullRole()
           
 void test150assignNullRole()
           
 void test151assignRoleToNullUser()
           
 void test152assignRoleToUnknownUser()
           
 void test153assignRoleToUserWithUnknownCA()
           
 void test154assignRoleToGoodUser()
           
 void test155listUsersWithRoleReturnsOnlyTestUser()
           
 void test156roleWithContentsCannotBeDeleted()
           
 void test157dismissRoleFromAUserWithoutThatRole()
           
 void test158dismissRoleFromTestUserFromAnotherGroup()
           
 void test159dismissRoleWithBadCA()
           
 void test160dismissRoleCorrectly()
           
 void test161checkDismissRole()
           
 void test162assignRoleInTestGroup()
           
 void test163assignRoleInSubGroup()
           
 void test164listUsersWithRoleInVOGroup()
           
 void test165listUsersWithRoleInRootGroup()
           
 void test166listUsersWithRoleInSubGroup()
           
 void test167dismissRoleFromParentGroup()
           
 void test168listUsersWithRoleInSubGroup()
           
 void test169listUsersWithRoleInRootGroup()
           
 void test170deleteRoleWithUsersInSubgroup()
           
 void test171removeUserFromRoleInSubGroup()
           
 void test172assignRoleToGoodUserTwice()
           
 void test200addMember()
           
 void test210listMembers()
           
 void test290removeMember()
           
 void test300getACLForVOGroup()
           
 void test301getDefaultACLForVOGroup()
           
 void test302compareACLs()
           
 void test302testACLFunctionality()
           
 void test303addACLEntryForTestGroup()
           
 void test304checkAddedEntry()
           
 void test305explicitCheckForEntry()
           
 void test306checkACLFunctionality()
           
 void test307removeACLEntry()
           
 void test308compareACLs()
           
 void test309testACLFunctionality()
           
 void test310addRoleACLEntryForTestGroup()
           
 void test311testRoleACLFunctionality()
           
 void test312assignRoleForRoleACL()
           
 void test313checkRoleACLFunctionality()
           
 void test314getAdminUsersFromRoleACL()
           
 void test315dismissRoleForRoleACL()
           
 void test316removeRoleACLEntry()
           
 void test317testRoleACLFunctionality()
           
 void test800deleteRole()
           
 void test801checkDeletedRole()
           
 void test802deleteNonexistentRole()
           
 void test803deleteBogusRole()
           
 void test804deleteNullRole()
           
 void test900deleteNestedGroups()
           
 void test910deleteGroup()
           
 void test920deleteTestUser()
           
 void test930deleteMoreTestUsers()
           
 void test951threading()
           
 void test999stopService()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log

v

private VOMSAdminSoapBindingImpl v

voName

private java.lang.String voName

newGroupName

private java.lang.String newGroupName

rootGroupName

private java.lang.String rootGroupName

newCAName

private static final java.lang.String newCAName
See Also:
Constant Field Values
Constructor Detail

VOMSAdminSoapBindingImplTest

public VOMSAdminSoapBindingImplTest(java.lang.String name)
Method Detail

suite

public static junit.framework.Test suite()

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
java.lang.Exception

setAuthzTest

public void setAuthzTest(java.lang.String clientName,
                         java.lang.String clientIssuer,
                         java.lang.String[] attributes)

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
java.lang.Exception

compareACLs

public boolean compareACLs(ACLEntry[] acl1,
                           ACLEntry[] acl2)
                    throws java.lang.Exception
java.lang.Exception

test000startService

public void test000startService()
                         throws java.lang.Exception
java.lang.Exception

test001databaseQuery

public void test001databaseQuery()
                          throws java.lang.Exception
java.lang.Exception

test002databaseBootstrapCA

public void test002databaseBootstrapCA()
                                throws java.lang.Exception
java.lang.Exception

test003databaseVOGroup

public void test003databaseVOGroup()
                            throws java.lang.Exception
java.lang.Exception

test004databaseBootstrapAdmin

public void test004databaseBootstrapAdmin()
                                   throws java.lang.Exception
java.lang.Exception

test002containerNamingScheme

public void test002containerNamingScheme()
                                  throws java.lang.Exception
java.lang.Exception

test006VOGroupName

public void test006VOGroupName()
                        throws java.lang.Exception
java.lang.Exception

test007getVOName

public void test007getVOName()
                      throws java.lang.Exception
java.lang.Exception

test008listCAsHasVirtualCA

public void test008listCAsHasVirtualCA()
                                throws java.lang.Exception
java.lang.Exception

test009createTestCA

public void test009createTestCA()
                         throws java.lang.Exception
java.lang.Exception

test010createTestUser

public void test010createTestUser()
                           throws java.lang.Exception
java.lang.Exception

test011getUser

public void test011getUser()
                    throws java.lang.Exception
java.lang.Exception

test012setUser

public void test012setUser()
                    throws java.lang.Exception
java.lang.Exception

test013checkSetUser

public void test013checkSetUser()
                         throws java.lang.Exception
java.lang.Exception

test012createUserAuthzErrorWithKnownUser

public void test012createUserAuthzErrorWithKnownUser()
                                              throws java.lang.Exception
java.lang.Exception

test013createUserAuthzErrorWithUnknownUser

public void test013createUserAuthzErrorWithUnknownUser()
                                                throws java.lang.Exception
java.lang.Exception

test014getUserAuthzErrorWithKnownUser

public void test014getUserAuthzErrorWithKnownUser()
                                           throws java.lang.Exception
java.lang.Exception

test014getUserAuthzErrorWithUnknownUser

public void test014getUserAuthzErrorWithUnknownUser()
                                             throws java.lang.Exception
java.lang.Exception

test015createUserWithUnknownCA

public void test015createUserWithUnknownCA()
                                    throws java.lang.Exception
java.lang.Exception

test016createUserWithNullCA

public void test016createUserWithNullCA()
                                 throws java.lang.Exception
java.lang.Exception

test017checkThatNewUserIsInVOGroup

public void test017checkThatNewUserIsInVOGroup()
                                        throws java.lang.Exception
java.lang.Exception

test030createSomeMoreTestUsers

public void test030createSomeMoreTestUsers()
                                    throws java.lang.Exception
java.lang.Exception

test031checkSomeMoreTestUsers

public void test031checkSomeMoreTestUsers()
                                   throws java.lang.Exception
java.lang.Exception

test040createBadGroupsVOGroup

public void test040createBadGroupsVOGroup()
                                   throws java.lang.Exception
java.lang.Exception

test041createBadGroupsBogusName

public void test041createBadGroupsBogusName()
                                     throws java.lang.Exception
java.lang.Exception

test042createBadGroupsWithoutParent

public void test042createBadGroupsWithoutParent()
                                         throws java.lang.Exception
java.lang.Exception

test043createBadGroupsNullName

public void test043createBadGroupsNullName()
                                    throws java.lang.Exception
java.lang.Exception

test044createBadGroupWithNullParent

public void test044createBadGroupWithNullParent()
                                         throws java.lang.Exception
java.lang.Exception

test045failingCreateGroupAsTestUser

public void test045failingCreateGroupAsTestUser()
                                         throws java.lang.Exception
java.lang.Exception

test046allowTestuserToCreateGroup

public void test046allowTestuserToCreateGroup()
                                       throws java.lang.Exception
java.lang.Exception

test047createGroupAsTestUser

public void test047createGroupAsTestUser()
                                  throws java.lang.Exception
java.lang.Exception

test048checkACL

public void test048checkACL()
                     throws java.lang.Exception
java.lang.Exception

test049cleanupAfterNewGroupACL

public void test049cleanupAfterNewGroupACL()
                                    throws java.lang.Exception
java.lang.Exception

test050cleanUpGoodGroup

public void test050cleanUpGoodGroup()
                             throws java.lang.Exception
java.lang.Exception

test051createGoodGroup

public void test051createGoodGroup()
                            throws java.lang.Exception
java.lang.Exception

test052checkGoodGroup

public void test052checkGoodGroup()
                           throws java.lang.Exception
java.lang.Exception

test053deleteGoodGroup

public void test053deleteGoodGroup()
                            throws java.lang.Exception
java.lang.Exception

test054checkDeletedGroup

public void test054checkDeletedGroup()
                              throws java.lang.Exception
java.lang.Exception

test055createGoodGroupWithNullParent

public void test055createGoodGroupWithNullParent()
                                          throws java.lang.Exception
java.lang.Exception

test056checkGoodGroupWithNullParent

public void test056checkGoodGroupWithNullParent()
                                         throws java.lang.Exception
java.lang.Exception

test057createBogusSubgroup

public void test057createBogusSubgroup()
                                throws java.lang.Exception
java.lang.Exception

test060createNestedGroups

public void test060createNestedGroups()
                               throws java.lang.Exception
java.lang.Exception

test100createRoleWithBogusName

public void test100createRoleWithBogusName()
                                    throws java.lang.Exception
java.lang.Exception

test101createRoleWithNullName

public void test101createRoleWithNullName()
                                   throws java.lang.Exception
java.lang.Exception

test102createRoleWithVOGroupName

public void test102createRoleWithVOGroupName()
                                      throws java.lang.Exception
java.lang.Exception

test103createAGoodRole

public void test103createAGoodRole()
                            throws java.lang.Exception
java.lang.Exception

test104checkNewRole

public void test104checkNewRole()
                         throws java.lang.Exception
java.lang.Exception

test105createAnotherRoleWithTheSameName

public void test105createAnotherRoleWithTheSameName()
                                             throws java.lang.Exception
java.lang.Exception

test106listUsersWithNonexistentRole

public void test106listUsersWithNonexistentRole()
                                         throws java.lang.Exception
java.lang.Exception

test107listUsersWithEmptyRole

public void test107listUsersWithEmptyRole()
                                   throws java.lang.Exception
java.lang.Exception

test108listUsersWithBogusRole

public void test108listUsersWithBogusRole()
                                   throws java.lang.Exception
java.lang.Exception

test109listUsersWithNullRole

public void test109listUsersWithNullRole()
                                  throws java.lang.Exception
java.lang.Exception

test150assignNullRole

public void test150assignNullRole()
                           throws java.lang.Exception
java.lang.Exception

test151assignRoleToNullUser

public void test151assignRoleToNullUser()
                                 throws java.lang.Exception
java.lang.Exception

test152assignRoleToUnknownUser

public void test152assignRoleToUnknownUser()
                                    throws java.lang.Exception
java.lang.Exception

test153assignRoleToUserWithUnknownCA

public void test153assignRoleToUserWithUnknownCA()
                                          throws java.lang.Exception
java.lang.Exception

test154assignRoleToGoodUser

public void test154assignRoleToGoodUser()
                                 throws java.lang.Exception
java.lang.Exception

test155listUsersWithRoleReturnsOnlyTestUser

public void test155listUsersWithRoleReturnsOnlyTestUser()
                                                 throws java.lang.Exception
java.lang.Exception

test156roleWithContentsCannotBeDeleted

public void test156roleWithContentsCannotBeDeleted()
                                            throws java.lang.Exception
java.lang.Exception

test157dismissRoleFromAUserWithoutThatRole

public void test157dismissRoleFromAUserWithoutThatRole()
                                                throws java.lang.Exception
java.lang.Exception

test158dismissRoleFromTestUserFromAnotherGroup

public void test158dismissRoleFromTestUserFromAnotherGroup()
                                                    throws java.lang.Exception
java.lang.Exception

test159dismissRoleWithBadCA

public void test159dismissRoleWithBadCA()
                                 throws java.lang.Exception
java.lang.Exception

test160dismissRoleCorrectly

public void test160dismissRoleCorrectly()
                                 throws java.lang.Exception
java.lang.Exception

test161checkDismissRole

public void test161checkDismissRole()
                             throws java.lang.Exception
java.lang.Exception

test162assignRoleInTestGroup

public void test162assignRoleInTestGroup()
                                  throws java.lang.Exception
java.lang.Exception

test163assignRoleInSubGroup

public void test163assignRoleInSubGroup()
                                 throws java.lang.Exception
java.lang.Exception

test164listUsersWithRoleInVOGroup

public void test164listUsersWithRoleInVOGroup()
                                       throws java.lang.Exception
java.lang.Exception

test165listUsersWithRoleInRootGroup

public void test165listUsersWithRoleInRootGroup()
                                         throws java.lang.Exception
java.lang.Exception

test166listUsersWithRoleInSubGroup

public void test166listUsersWithRoleInSubGroup()
                                        throws java.lang.Exception
java.lang.Exception

test167dismissRoleFromParentGroup

public void test167dismissRoleFromParentGroup()
                                       throws java.lang.Exception
java.lang.Exception

test168listUsersWithRoleInSubGroup

public void test168listUsersWithRoleInSubGroup()
                                        throws java.lang.Exception
java.lang.Exception

test169listUsersWithRoleInRootGroup

public void test169listUsersWithRoleInRootGroup()
                                         throws java.lang.Exception
java.lang.Exception

test170deleteRoleWithUsersInSubgroup

public void test170deleteRoleWithUsersInSubgroup()
                                          throws java.lang.Exception
java.lang.Exception

test171removeUserFromRoleInSubGroup

public void test171removeUserFromRoleInSubGroup()
                                         throws java.lang.Exception
java.lang.Exception

test172assignRoleToGoodUserTwice

public void test172assignRoleToGoodUserTwice()
                                      throws java.lang.Exception
java.lang.Exception

test200addMember

public void test200addMember()
                      throws java.lang.Exception
java.lang.Exception

test210listMembers

public void test210listMembers()
                        throws java.lang.Exception
java.lang.Exception

test290removeMember

public void test290removeMember()
                         throws java.lang.Exception
java.lang.Exception

test300getACLForVOGroup

public void test300getACLForVOGroup()
                             throws java.lang.Exception
java.lang.Exception

test301getDefaultACLForVOGroup

public void test301getDefaultACLForVOGroup()
                                    throws java.lang.Exception
java.lang.Exception

test302compareACLs

public void test302compareACLs()
                        throws java.lang.Exception
java.lang.Exception

test302testACLFunctionality

public void test302testACLFunctionality()
                                 throws java.lang.Exception
java.lang.Exception

test303addACLEntryForTestGroup

public void test303addACLEntryForTestGroup()
                                    throws java.lang.Exception
java.lang.Exception

test304checkAddedEntry

public void test304checkAddedEntry()
                            throws java.lang.Exception
java.lang.Exception

test305explicitCheckForEntry

public void test305explicitCheckForEntry()
                                  throws java.lang.Exception
java.lang.Exception

test306checkACLFunctionality

public void test306checkACLFunctionality()
                                  throws java.lang.Exception
java.lang.Exception

test307removeACLEntry

public void test307removeACLEntry()
                           throws java.lang.Exception
java.lang.Exception

test308compareACLs

public void test308compareACLs()
                        throws java.lang.Exception
java.lang.Exception

test309testACLFunctionality

public void test309testACLFunctionality()
                                 throws java.lang.Exception
java.lang.Exception

test310addRoleACLEntryForTestGroup

public void test310addRoleACLEntryForTestGroup()
                                        throws java.lang.Exception
java.lang.Exception

test311testRoleACLFunctionality

public void test311testRoleACLFunctionality()
                                     throws java.lang.Exception
java.lang.Exception

test312assignRoleForRoleACL

public void test312assignRoleForRoleACL()
                                 throws java.lang.Exception
java.lang.Exception

test313checkRoleACLFunctionality

public void test313checkRoleACLFunctionality()
                                      throws java.lang.Exception
java.lang.Exception

test314getAdminUsersFromRoleACL

public void test314getAdminUsersFromRoleACL()
                                     throws java.lang.Exception
java.lang.Exception

test315dismissRoleForRoleACL

public void test315dismissRoleForRoleACL()
                                  throws java.lang.Exception
java.lang.Exception

test316removeRoleACLEntry

public void test316removeRoleACLEntry()
                               throws java.lang.Exception
java.lang.Exception

test317testRoleACLFunctionality

public void test317testRoleACLFunctionality()
                                     throws java.lang.Exception
java.lang.Exception

test800deleteRole

public void test800deleteRole()
                       throws java.lang.Exception
java.lang.Exception

test801checkDeletedRole

public void test801checkDeletedRole()
                             throws java.lang.Exception
java.lang.Exception

test802deleteNonexistentRole

public void test802deleteNonexistentRole()
                                  throws java.lang.Exception
java.lang.Exception

test803deleteBogusRole

public void test803deleteBogusRole()
                            throws java.lang.Exception
java.lang.Exception

test804deleteNullRole

public void test804deleteNullRole()
                           throws java.lang.Exception
java.lang.Exception

test900deleteNestedGroups

public void test900deleteNestedGroups()
                               throws java.lang.Exception
java.lang.Exception

test910deleteGroup

public void test910deleteGroup()
                        throws java.lang.Exception
java.lang.Exception

test920deleteTestUser

public void test920deleteTestUser()
                           throws java.lang.Exception
java.lang.Exception

test930deleteMoreTestUsers

public void test930deleteMoreTestUsers()
                                throws java.lang.Exception
java.lang.Exception

test951threading

public void test951threading()
                      throws java.lang.Exception
java.lang.Exception

test999stopService

public void test999stopService()
                        throws java.lang.Exception
java.lang.Exception