com.atlassian.confluence
Class SpaceAdminPermissionsAcceptanceTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.confluence.junit3.JUnit3TimingTestCase
com.atlassian.confluence.AbstractConfluenceAcceptanceTest
com.atlassian.confluence.AbstractPermissionsAcceptanceTest
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:
- That the admin user can see the appropriate link
- That an unpermitted user can not see the appropriate link
- That a space admin can see the appropriate link
- That the admin user can perform the action directly
- That an unpermitted user can not perform it directly
- 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.
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest |
ANONYMOUS_USER, DASHBOARD_RECENT_UPDATES_URL, DIRECTORY_CONFIG, exceptionTransformer, filesToDelete, log, logAdjuster, RANDOM, rpc, serverStateManager, 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, VIEW_PERSONAL_SPACE_LINK, webTester, wikiMarkupRpc |
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest |
adminConsole, attachments, createAndWatchTestPage, createSpaceViaWebUI, createTestSpaceViaWebUI, disableAnonymousAccess, enableAnonymousAccess, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getFriendlyRelativeDate, getPluginHelper, goToBlogCollector, goToPagesCollector, isClustered, logInAsAdminAtHomepage, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtHomepage, logins, logout, pages, rebuildIndex, setUp, setUpTestNG, tearDown, tearDownTestNG, users, viewHomepage, viewPeopleDirectory, viewSpaceAdmin, viewSpacePermissions, viewSpaceSummary, viewSpaceTools, 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, failNotEquals, failNotSame, failSame, format |
EDIT_CATEGORIES_LINK_ID
public static final String EDIT_CATEGORIES_LINK_ID
- See Also:
- Constant Field Values
SpaceAdminPermissionsAcceptanceTest
public SpaceAdminPermissionsAcceptanceTest()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class AbstractConfluenceAcceptanceTest
- Throws:
Exception
testLookAndFeelLinksPresentForSpaceAdmin
public void testLookAndFeelLinksPresentForSpaceAdmin()
throws Exception
- Throws:
Exception
testAddSpaceCategoriesAsAdmin
public void testAddSpaceCategoriesAsAdmin()
testAddSpaceCategoriesAsUserWithAdminPermission
public void testAddSpaceCategoriesAsUserWithAdminPermission()
throws Exception
- Throws:
Exception
testAddSpaceCategoriesAsUserWithoutAdminPermission
public void testAddSpaceCategoriesAsUserWithoutAdminPermission()
throws Exception
- Throws:
Exception
testPermissionsTabPresentForSpaceAdmin
public void testPermissionsTabPresentForSpaceAdmin()
throws Exception
- Throws:
Exception
testPermissionsTabNotPresentForNonSpaceAdmin
public void testPermissionsTabNotPresentForNonSpaceAdmin()
throws Exception
- Throws:
Exception
testAnonymousUserCannotBeGrantedSpaceAdminPermissionsByRpc
public void testAnonymousUserCannotBeGrantedSpaceAdminPermissionsByRpc()
throws Exception
- Throws:
Exception
testAddSpaceCategoriesAsAnonymousWithoutAdminPermission
public void testAddSpaceCategoriesAsAnonymousWithoutAdminPermission()
throws Exception
- Throws:
Exception
testViewSpaceAdminAsAdmin
public void testViewSpaceAdminAsAdmin()
throws Exception
- The following methods test security by accessing actions directly (rather than navigating through the interface)
See CONF-4832
- Throws:
Exception
testViewSpaceAdminAsUnpermittedUser
public void testViewSpaceAdminAsUnpermittedUser()
throws Exception
- Throws:
Exception
testEditSpaceDetails
public void testEditSpaceDetails()
throws Exception
- Throws:
Exception
testEditSpaceCategories
public void testEditSpaceCategories()
throws Exception
- Throws:
Exception
testRemoveSpace
public void testRemoveSpace()
throws Exception
- Throws:
Exception
testTrashDirectUrlAsAdmin
public void testTrashDirectUrlAsAdmin()
throws Exception
- Throws:
Exception
testTrashDirectUrlAsUnpermittedUser
public void testTrashDirectUrlAsUnpermittedUser()
throws Exception
- Throws:
Exception
testPermissions
public void testPermissions()
throws Exception
- Throws:
Exception
testViewRestrictedPagesAsAdmin
public void testViewRestrictedPagesAsAdmin()
throws Exception
- Throws:
Exception
testViewRestrictedPagesDirectUrlAsUnpermittedUser
public void testViewRestrictedPagesDirectUrlAsUnpermittedUser()
throws Exception
- Throws:
Exception
testConfluenceAdministratorsCannotViewUnpermittedSpaces
public void testConfluenceAdministratorsCannotViewUnpermittedSpaces()
throws Exception
- Throws:
Exception
testSystemAdministratorsCannotViewUnpermittedSpaces
public void testSystemAdministratorsCannotViewUnpermittedSpaces()
throws Exception
- Throws:
Exception
testMailAccounts
public void testMailAccounts()
throws Exception
- Throws:
Exception
testMailboxImport
public void testMailboxImport()
throws Exception
- Throws:
Exception
testThemes
public void testThemes()
throws Exception
- Throws:
Exception
testColourScheme
public void testColourScheme()
throws Exception
- Throws:
Exception
testLayoutAsAdmin
public void testLayoutAsAdmin()
throws Exception
- Throws:
Exception
testLayoutDirectUrlAsUnpermittedUser
public void testLayoutDirectUrlAsUnpermittedUser()
throws Exception
- Throws:
Exception
testImportPagesFromDiskAsAdmin
public void testImportPagesFromDiskAsAdmin()
throws Exception
- Throws:
Exception
testImportPagesFromDiskDirectUrlAsUnpermittedUser
public void testImportPagesFromDiskDirectUrlAsUnpermittedUser()
throws Exception
- Throws:
Exception
testImportPagesFromDiskOnlyAvailableToSysAdmins
public void testImportPagesFromDiskOnlyAvailableToSysAdmins()
throws Exception
- Throws:
Exception
Copyright © 2003-2013 Atlassian. All Rights Reserved.