com.atlassian.confluence
Class SpaceAdminPermissionsAcceptanceTest

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

public class SpaceAdminPermissionsAcceptanceTest
extends AbstractPermissionsAcceptanceTest

For each Space Administration Action, this class tests some subset of:

  1. That the admin user can see the appropriate link
  2. That an unpermitted user can not see the appropriate link
  3. That a space admin can see the appropriate link
  4. That the admin user can perform the action directly
  5. That an unpermitted user can not perform it directly
  6. That a space admin can perform it directly
There are numerous tests missing. Eg there are no tests that a space admin can perform tasks, only that the links are present.


Field Summary
static java.lang.String EDIT_CATEGORIES_LINK_ID
           
 
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
SpaceAdminPermissionsAcceptanceTest()
           
 
Method Summary
protected  void setUp()
          Default setUp method.
 void testAddSpaceCategoriesAsAdmin()
           
 void testAddSpaceCategoriesAsAnonymousWithoutAdminPermission()
           
 void testAddSpaceCategoriesAsUserWithAdminPermission()
           
 void testAddSpaceCategoriesAsUserWithoutAdminPermission()
           
 void testAnonymousUserCannotBeGrantedSpaceAdminPermissionsByRpc()
           
 void testColourScheme()
           
 void testConfigureDocThemeDirectUrlAsUnpermittedUser()
           
 void testConfluenceAdministratorsCannotViewUnpermittedSpaces()
           
 void testEditSpaceCategories()
           
 void testEditSpaceDetails()
           
 void testImportPagesFromDiskAsAdmin()
           
 void testImportPagesFromDiskDirectUrlAsUnpermittedUser()
           
 void testImportPagesFromDiskOnlyAvailableToSysAdmins()
           
 void testLayoutAsAdmin()
           
 void testLayoutDirectUrlAsUnpermittedUser()
           
 void testLookAndFeelLinksPresentForSpaceAdmin()
           
 void testMailAccounts()
           
 void testMailboxImport()
           
 void testPermissions()
           
 void testPermissionsTabNotPresentForNonSpaceAdmin()
           
 void testPermissionsTabPresentForSpaceAdmin()
           
 void testRemoveSpace()
           
 void testSystemAdministratorsCannotViewUnpermittedSpaces()
           
 void testThemes()
           
 void testTrashDirectUrlAsAdmin()
           
 void testTrashDirectUrlAsUnpermittedUser()
           
 void testViewRestrictedPagesAsAdmin()
           
 void testViewRestrictedPagesDirectUrlAsUnpermittedUser()
           
 void testViewSpaceAdminAsAdmin()
          The following methods test security by accessing actions directly (rather than navigating through the interface) See CONF-4832
 void testViewSpaceAdminAsUnpermittedUser()
           
 
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, tearDown, 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
 

Field Detail

EDIT_CATEGORIES_LINK_ID

public static final java.lang.String EDIT_CATEGORIES_LINK_ID
See Also:
Constant Field Values
Constructor Detail

SpaceAdminPermissionsAcceptanceTest

public SpaceAdminPermissionsAcceptanceTest()
Method Detail

setUp

protected 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

testLookAndFeelLinksPresentForSpaceAdmin

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

testAddSpaceCategoriesAsAdmin

public void testAddSpaceCategoriesAsAdmin()

testAddSpaceCategoriesAsUserWithAdminPermission

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

testAddSpaceCategoriesAsUserWithoutAdminPermission

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

testPermissionsTabPresentForSpaceAdmin

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

testPermissionsTabNotPresentForNonSpaceAdmin

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

testAnonymousUserCannotBeGrantedSpaceAdminPermissionsByRpc

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

testAddSpaceCategoriesAsAnonymousWithoutAdminPermission

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

testViewSpaceAdminAsAdmin

public void testViewSpaceAdminAsAdmin()
                               throws java.lang.Exception
The following methods test security by accessing actions directly (rather than navigating through the interface) See CONF-4832

Throws:
java.lang.Exception

testViewSpaceAdminAsUnpermittedUser

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

testEditSpaceDetails

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

testEditSpaceCategories

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

testRemoveSpace

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

testTrashDirectUrlAsAdmin

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

testTrashDirectUrlAsUnpermittedUser

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

testPermissions

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

testViewRestrictedPagesAsAdmin

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

testViewRestrictedPagesDirectUrlAsUnpermittedUser

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

testConfluenceAdministratorsCannotViewUnpermittedSpaces

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

testSystemAdministratorsCannotViewUnpermittedSpaces

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

testMailAccounts

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

testMailboxImport

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

testThemes

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

testColourScheme

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

testLayoutAsAdmin

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

testLayoutDirectUrlAsUnpermittedUser

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

testConfigureDocThemeDirectUrlAsUnpermittedUser

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

testImportPagesFromDiskAsAdmin

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

testImportPagesFromDiskDirectUrlAsUnpermittedUser

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

testImportPagesFromDiskOnlyAvailableToSysAdmins

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.