com.atlassian.confluence.rpc
Class PermissionsRpcAcceptanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.confluence.junit3.JUnit3TimingTestCase
              extended by com.atlassian.confluence.AbstractConfluenceAcceptanceTest
                  extended by com.atlassian.confluence.AbstractPermissionsAcceptanceTest
                      extended by com.atlassian.confluence.rpc.PermissionsRpcAcceptanceTest
All Implemented Interfaces:
junit.framework.Test

public class PermissionsRpcAcceptanceTest
extends AbstractPermissionsAcceptanceTest


Field Summary
 
Fields inherited from class com.atlassian.confluence.AbstractPermissionsAcceptanceTest
ADMIN_GROUP_PERMISSION
 
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
DASHBOARD_RECENT_UPDATES_URL, log, logAdjuster, RANDOM, rpc, TEST_ADMIN, TEST_BLOG, TEST_COMMENT, TEST_GROUP1, TEST_GROUP2, TEST_PAGE, TEST_SPACE, TEST_SPACE2, TEST_USER1, TEST_USER2, TESTBLOG_CONTENT, TESTBLOG_TITLE, testData, TESTPAGE_COMMENT, TESTPAGE_CONTENT, TESTPAGE_TITLE, TESTSPACE_KEY, TESTSPACE_TITLE, TESTSPACE2_KEY, TESTSPACE2_TITLE, webTester, wikiMarkupRpc
 
Constructor Summary
PermissionsRpcAcceptanceTest()
           
 
Method Summary
 void setUp()
          Default setUp method.
 void tearDown()
          Default tearDown method.
 void testAddAnonymousPermissionToSpace()
           
 void testAddGroupPermissionToSpace()
           
 void testAddMultipleGroupPermissionsToSpace()
           
 void testAddMultipleUserPermissionsToSpace()
           
 void testAddMultipleUserPermissionsToSpaceWithInvalidClass()
           
 void testAddUserPermissionToInvalidSpace()
           
 void testAddUserPermissionToSpace()
           
 void testAddUserPermissionToSpaceAsUnpermittedUser()
           
 void testAddUserPermissionToSpaceWithInvalidUser()
           
 void testAnonymousUsePermission()
           
 void testAnonymousViewUserProfilesPermission()
           
 void testConfAdminCannotRemoveGlobalPermissionsFromSysAdmin()
           
 void testGetChildrenHonoursPageLevelPermissions()
           
 void testGetContentPermissionSet()
           
 void testGetPagePermissions()
           
 void testGetPagesHonoursPageLevelPermissions()
           
 void testGetPermissions()
           
 void testGetPermissionsForUser()
           
 void testGetPermissionsForUserNonAdminUser()
           
 void testGetPermissionsNotPermitted()
           
 void testGetPermissionsPermittedForSuperUser()
           
 void testGetSinglePageHonoursPageLevelPermissions()
          test that retrieving a page or retrieving the dependents of a page such as children, comments, attachments etc honour page level permissions
 void testGetSpaceLevelPermissions()
           
 void testGetSpacesForAnonymousUsers()
           
 void testRecoverAdminPermissionForSpace()
           
 void testRemoveAnonymousPermissionFromSpace()
           
 void testRemoveGroupPermissionFromSpace()
           
 void testRemoveGroupPermissionFromSpaceAsUnpermittedUser()
           
 void testRemoveUserPermissionFromInvalidSpace()
           
 void testRemoveUserPermissionFromSpace()
           
 void testRemoveUserPermissionFromSpaceAsUnpermittedUser()
           
 void testRemoveUserPermissionFromSpaceWithInvalidUser()
           
 void testSearchHonoursPageLevelPermissions()
           
 void testUserCanCreateSpace()
           
 
Methods inherited from class com.atlassian.confluence.AbstractPermissionsAcceptanceTest
assertUserHasNoPermissionsInViewPermissionsTable, removeViewPermissions
 
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
adminConsole, attachments, createSpaceViaWebUI, createTestSpaceViaWebUI, directoryConfig, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getPluginHelper, getServerStateManager, goToBlogCollector, logInAsAdminAtHomepage, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtHomepage, logins, logout, pages, rebuildIndex, setUpTestNG, tearDownTestNG, users, viewHomepage, viewSpaceAdmin, viewSpacePermissions, viewSpaceSummary, viewSpaceTools, viewTrash, watchSpace, webAppContextPath
 
Methods inherited from class com.atlassian.confluence.junit3.JUnit3TimingTestCase
runBare, setExceptionTransformer
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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
 

Constructor Detail

PermissionsRpcAcceptanceTest

public PermissionsRpcAcceptanceTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Description copied from class: AbstractConfluenceAcceptanceTest
Default setUp method. Establishes XML-RPC connection and sets the base URL. Also configures LDAP repository.

Overrides:
setUp in class AbstractConfluenceAcceptanceTest
Throws:
java.lang.Exception - from super

tearDown

public void tearDown()
              throws java.lang.Exception
Description copied from class: AbstractConfluenceAcceptanceTest
Default tearDown method. Removes any files which were added to the AbstractConfluenceAcceptanceTest.filesToDelete list.

Overrides:
tearDown in class AbstractConfluenceAcceptanceTest
Throws:
java.lang.Exception

testGetSpacesForAnonymousUsers

public void testGetSpacesForAnonymousUsers()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testGetPagesHonoursPageLevelPermissions

public void testGetPagesHonoursPageLevelPermissions()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

testGetSinglePageHonoursPageLevelPermissions

public void testGetSinglePageHonoursPageLevelPermissions()
                                                  throws java.lang.Exception
test that retrieving a page or retrieving the dependents of a page such as children, comments, attachments etc honour page level permissions

Throws:
java.io.IOException
java.lang.Exception

testGetChildrenHonoursPageLevelPermissions

public void testGetChildrenHonoursPageLevelPermissions()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testSearchHonoursPageLevelPermissions

public void testSearchHonoursPageLevelPermissions()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testGetContentPermissionSet

public void testGetContentPermissionSet()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testGetPagePermissions

public void testGetPagePermissions()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testAddUserPermissionToSpace

public void testAddUserPermissionToSpace()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testAddAnonymousPermissionToSpace

public void testAddAnonymousPermissionToSpace()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveAnonymousPermissionFromSpace

public void testRemoveAnonymousPermissionFromSpace()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testAnonymousUsePermission

public void testAnonymousUsePermission()
                                throws java.io.IOException,
                                       org.apache.xmlrpc.XmlRpcException,
                                       java.net.URISyntaxException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException
java.net.URISyntaxException

testAnonymousViewUserProfilesPermission

public void testAnonymousViewUserProfilesPermission()
                                             throws java.io.IOException,
                                                    org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testAddUserPermissionToSpaceAsUnpermittedUser

public void testAddUserPermissionToSpaceAsUnpermittedUser()
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

testAddGroupPermissionToSpace

public void testAddGroupPermissionToSpace()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testAddUserPermissionToInvalidSpace

public void testAddUserPermissionToInvalidSpace()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testAddUserPermissionToSpaceWithInvalidUser

public void testAddUserPermissionToSpaceWithInvalidUser()
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

testAddMultipleUserPermissionsToSpace

public void testAddMultipleUserPermissionsToSpace()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testAddMultipleUserPermissionsToSpaceWithInvalidClass

public void testAddMultipleUserPermissionsToSpaceWithInvalidClass()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

testAddMultipleGroupPermissionsToSpace

public void testAddMultipleGroupPermissionsToSpace()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveUserPermissionFromSpace

public void testRemoveUserPermissionFromSpace()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveGroupPermissionFromSpace

public void testRemoveGroupPermissionFromSpace()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveGroupPermissionFromSpaceAsUnpermittedUser

public void testRemoveGroupPermissionFromSpaceAsUnpermittedUser()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveUserPermissionFromSpaceAsUnpermittedUser

public void testRemoveUserPermissionFromSpaceAsUnpermittedUser()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveUserPermissionFromInvalidSpace

public void testRemoveUserPermissionFromInvalidSpace()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveUserPermissionFromSpaceWithInvalidUser

public void testRemoveUserPermissionFromSpaceWithInvalidUser()
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

testGetSpaceLevelPermissions

public void testGetSpaceLevelPermissions()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testGetPermissions

public void testGetPermissions()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testGetPermissionsNotPermitted

public void testGetPermissionsNotPermitted()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testGetPermissionsPermittedForSuperUser

public void testGetPermissionsPermittedForSuperUser()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

testGetPermissionsForUser

public void testGetPermissionsForUser()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testGetPermissionsForUserNonAdminUser

public void testGetPermissionsForUserNonAdminUser()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testConfAdminCannotRemoveGlobalPermissionsFromSysAdmin

public void testConfAdminCannotRemoveGlobalPermissionsFromSysAdmin()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

testUserCanCreateSpace

public void testUserCanCreateSpace()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testRecoverAdminPermissionForSpace

public void testRecoverAdminPermissionForSpace()
                                        throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2014 Atlassian. All Rights Reserved.