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.rpc.PermissionsRpcAcceptanceTest
All Implemented Interfaces:
junit.framework.Test

public class PermissionsRpcAcceptanceTest
extends AbstractConfluenceAcceptanceTest


Field Summary
 
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
DASHBOARD_RECENT_UPDATES_URL, logAdjuster, 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.AbstractConfluenceAcceptanceTest
adminConsole, attachments, baseUrlSelector, createSpaceViaWebUI, createTestSpaceViaWebUI, createTestUser, darkFeatures, directoryConfig, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getPluginHelper, getServerStateManager, goToBlogCollector, logins, logout, pages, plugins, rebuildIndex, setUpTestNG, substituteForNodeBaseUrl, 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 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:
Exception - from super

tearDown

public void tearDown()
              throws 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:
Exception

testGetSpacesForAnonymousUsers

public void testGetSpacesForAnonymousUsers()
                                    throws Exception
Throws:
Exception

testGetPagesHonoursPageLevelPermissions

public void testGetPagesHonoursPageLevelPermissions()
                                             throws Exception
Throws:
Exception

testGetSinglePageHonoursPageLevelPermissions

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

Throws:
IOException
Exception

testGetChildrenHonoursPageLevelPermissions

public void testGetChildrenHonoursPageLevelPermissions()
                                                throws Exception
Throws:
Exception

testSearchHonoursPageLevelPermissions

public void testSearchHonoursPageLevelPermissions()
                                           throws Exception
Throws:
Exception

testGetContentPermissionSet

public void testGetContentPermissionSet()
                                 throws Exception
Throws:
Exception

testGetPagePermissions

public void testGetPagePermissions()
                            throws Exception
Throws:
Exception

testAddUserPermissionToSpace

public void testAddUserPermissionToSpace()
                                  throws Exception
Throws:
Exception

testAddAnonymousPermissionToSpace

public void testAddAnonymousPermissionToSpace()
                                       throws Exception
Throws:
Exception

testRemoveAnonymousPermissionFromSpace

public void testRemoveAnonymousPermissionFromSpace()
                                            throws Exception
Throws:
Exception

testAnonymousUsePermission

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

testAnonymousViewUserProfilesPermission

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

testAddUserPermissionToSpaceAsUnpermittedUser

public void testAddUserPermissionToSpaceAsUnpermittedUser()
                                                   throws Exception
Throws:
Exception

testAddGroupPermissionToSpace

public void testAddGroupPermissionToSpace()
                                   throws Exception
Throws:
Exception

testAddUserPermissionToInvalidSpace

public void testAddUserPermissionToInvalidSpace()
                                         throws Exception
Throws:
Exception

testAddUserPermissionToSpaceWithInvalidUser

public void testAddUserPermissionToSpaceWithInvalidUser()
                                                 throws Exception
Throws:
Exception

testAddMultipleUserPermissionsToSpace

public void testAddMultipleUserPermissionsToSpace()
                                           throws Exception
Throws:
Exception

testAddMultipleUserPermissionsToSpaceWithInvalidClass

public void testAddMultipleUserPermissionsToSpaceWithInvalidClass()
                                                           throws Exception
Throws:
Exception

testAddMultipleGroupPermissionsToSpace

public void testAddMultipleGroupPermissionsToSpace()
                                            throws Exception
Throws:
Exception

testRemoveUserPermissionFromSpace

public void testRemoveUserPermissionFromSpace()
                                       throws Exception
Throws:
Exception

testRemoveGroupPermissionFromSpace

public void testRemoveGroupPermissionFromSpace()
                                        throws Exception
Throws:
Exception

testRemoveGroupPermissionFromSpaceAsUnpermittedUser

public void testRemoveGroupPermissionFromSpaceAsUnpermittedUser()
                                                         throws Exception
Throws:
Exception

testRemoveUserPermissionFromSpaceAsUnpermittedUser

public void testRemoveUserPermissionFromSpaceAsUnpermittedUser()
                                                        throws Exception
Throws:
Exception

testRemoveUserPermissionFromInvalidSpace

public void testRemoveUserPermissionFromInvalidSpace()
                                              throws Exception
Throws:
Exception

testRemoveUserPermissionFromSpaceWithInvalidUser

public void testRemoveUserPermissionFromSpaceWithInvalidUser()
                                                      throws Exception
Throws:
Exception

testGetSpaceLevelPermissions

public void testGetSpaceLevelPermissions()
                                  throws Exception
Throws:
Exception

testGetPermissions

public void testGetPermissions()
                        throws Exception
Throws:
Exception

testGetPermissionsNotPermitted

public void testGetPermissionsNotPermitted()
                                    throws Exception
Throws:
Exception

testGetPermissionsPermittedForSuperUser

public void testGetPermissionsPermittedForSuperUser()
                                             throws Exception
Throws:
Exception

testGetPermissionsForUser

public void testGetPermissionsForUser()
                               throws Exception
Throws:
Exception

testGetPermissionsForUserNonAdminUser

public void testGetPermissionsForUserNonAdminUser()
                                           throws Exception
Throws:
Exception

testConfAdminCannotRemoveGlobalPermissionsFromSysAdmin

public void testConfAdminCannotRemoveGlobalPermissionsFromSysAdmin()
                                                            throws Exception
Throws:
Exception

testUserCanCreateSpace

public void testUserCanCreateSpace()
                            throws Exception
Throws:
Exception

testRecoverAdminPermissionForSpace

public void testRecoverAdminPermissionForSpace()
                                        throws Exception
Throws:
Exception


Copyright © 2003–2015 Atlassian. All rights reserved.