com.atlassian.confluence
Class PagePermissionsAcceptanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.confluence.ThreadLocalWebTestCase
              extended by com.atlassian.confluence.AbstractAtlassianWebTestCase
                  extended by com.atlassian.confluence.AbstractConfluenceAcceptanceTest
                      extended by com.atlassian.confluence.AbstractPermissionsAcceptanceTest
                          extended by com.atlassian.confluence.PagePermissionsAcceptanceTest
All Implemented Interfaces:
junit.framework.Test

public class PagePermissionsAcceptanceTest
extends AbstractPermissionsAcceptanceTest

Some (or all) of the LDAP skips may not be necessary.


Field Summary
protected static String CHILD
           
protected static String GRANDCHILD
           
static String NO_EDIT_PERMS_MESSAGE
           
static String NO_VIEW_PERMS_MESSAGE
           
protected static String PARENT
           
 
Fields inherited from class com.atlassian.confluence.AbstractPermissionsAcceptanceTest
ADMIN_GROUP_PERMISSION, ATTACH_TO_PROFILE_PERMISSION_INDEX, CONF_USERS_PERMISSION, CONFLUENCE_ADMIN_PERMISSION_INDEX, CREATE_SPACE_PERMISSION_INDEX, FOO_GROUPNAME, NO_PERMISSION, PERSONAL_SPACE_PERMISSION_INDEX, SYSTEM_ADMIN_PERMISSION_INDEX, UPDATE_STATUS_PERMISSION_INDEX, USE_CONFLUENCE_PERMISSION_INDEX
 
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
adminConsole, adminToken, ANONYMOUS_USER, BLOG_DATE_FORMAT, BROWSE_MENU_LINK_ID, CONFLUENCE_ADMIN_GROUP, CONFLUENCE_USERS_GROUP, context, CROWD_MODE, DIRECTORY_CONFIG, filesToDelete, log, logAdjuster, mailServices, RANDOM, rpc, SMTP_SUBJECT_PREFIX, TEST_ADMIN, TEST_ADMIN_EMAIL, TEST_ADMIN_FULLNAME, TEST_ADMIN_PASSWORD, TEST_ADMIN_USERNAME, TEST_BLOG, TEST_COMMENT, TEST_GEN_EMAIL1, TEST_GEN_EMAIL2, TEST_GEN_FULLNAME1, TEST_GEN_FULLNAME2, TEST_GEN_PASSWORD1, TEST_GEN_PASSWORD2, TEST_GEN_USERNAME1, TEST_GEN_USERNAME2, TEST_GROUP1, TEST_PAGE, TEST_SPACE, TEST_SPACE2, TEST_USER1, TEST_USER2, TESTBLOG_CONTENT, TESTBLOG_TITLE, TESTMAILSERVER_HOSTNAME, TESTMAILSERVER_NAME, TESTPAGE_COMMENT, TESTPAGE_CONTENT, TESTPAGE_TITLE, TESTSPACE_DESCRIPTION, TESTSPACE_KEY, TESTSPACE_TITLE, TESTSPACE2_DESCRIPTION, TESTSPACE2_KEY, TESTSPACE2_TITLE, testUser2Token, testUserToken, userHelper, VIEW_PERSONAL_SPACE_LINK, wikiMarkupRpc, xmlrpc
 
Fields inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase
SITE_TITLE_SUFFIX, TITLE_SEPARATOR
 
Constructor Summary
PagePermissionsAcceptanceTest()
           
 
Method Summary
protected  void assertPageLinkExists(String pageName)
          Assert that the link to the exists on all of the pagesummary pages.
protected  void assertPageLinkNotExists(String pageName)
          Assert that the link to the page does not exists on any of the pagesummary pages.
protected  void createPageHierarchy(boolean addDependents)
           
protected  void createPageHierarchyWithDependents()
           
protected  void createPageHierarchyWithoutDependants()
           
protected  void loginAdmin(String startPage)
           
protected  void loginTestUser(String startPage)
           
protected  void setUp()
           
 void testAdminCannotEditRestrictedPage()
           
 void testAnonymousUsersRespectPageLevelEditPermissions()
           
 void testAttachmentMoveHonorsTargetSpacePermissions()
           
 void testAttachmentsAreProtected()
           
 void testAttachmentsAreProtectedInHierarchy()
           
 void testAttachmentsOnProtectedPagesDoNotAppearOnDashboard()
           
 void testCannotEditPageWithoutViewPermission()
           
 void testCannotGeneraliseViewPermissionsToExtraPermission()
           
 void testCannotViewPageDueToInheritedPermissionsMessage()
          If the user cannot see a page due to inherited permissions, we should notify them of this appropriately.
 void testChildrenMacroRespectsPageLevelPermissions()
           
 void testChildrenSectionOnViewPageRespectsPageLevelPermissions()
           
 void testCommentOnRestrictedSubPageSameFlush()
          Make sure added comments receive same inherited permissions.
 void testCommentOnRestrictedSubPageSeperateFlush()
          Make sure added comments receive same inherited permissions.
 void testCommentOnRestrictedSubPageSeperateFlushAfterEdit()
          Make sure added comments receive same inherited permissions.
 void testCommentOnRestrictedSubPageSeperateFlushBeforeEdit()
          Make sure added comments receive same inherited permissions.
 void testCommentsAreProtected()
           
 void testCreateChildPageOfRestrictedParent()
           
 void testEditLocksDontBehaveAsViewLocks()
           
 void testEditPermission()
           
 void testExclusiveUserAndGroupViewPermissions()
           
 void testExportWordLink()
           
 void testExportWordLinkAsAdmin()
           
 void testExportWordLinkAsAnonymousUser()
           
 void testExportWordLinkAsAnonymousUserWithNoPermissions()
           
 void testExportWordLinkWithNoPermissions()
           
 void testGroupEditPermission()
           
 void testGroupPageLevelPermission()
           
 void testGroupPageLevelPermissionAreInherited()
          restrict access to the whole hierarchy to confluence-admins only.
 void testInheritedUserPermissions()
           
 void testMenuOptionsUnavailableForRestrictedPage()
           
 void testMovePageWithInheritedPermissions()
           
 void testMultipleGroupViewPermissions()
           
 void testMultipleUserAndGroupEditPermissions()
           
 void testMultipleUserViewPermissions()
           
 void testOnlyPermittedPagesAreMoved()
           
 void testPageLevelPermissionsUpdatedOnPageMove()
           
 void testPageMetadataNotUpdatedByEditingPermissions()
           
 void testPagePermissionsArePreservedOnMove()
           
 void testPagingOnRestrictedPages()
           
 void testPermissionCacheIsFlushedOnRemovePagePermission()
           
 void testPermissionCacheIsFlushedOnUpdateToPagePermission()
           
 void testPermissionsForGroupsWithApostrophes()
           
 void testPermissionsForUsersWithApostrophes()
           
 void testPermissionsReflectAddMenuDisplay()
           
 void testRefiningViewPermissionsToASubsetOfUsersInTheInheritedGroupPermission()
           
 void testRefiningViewPermissionsToPartsOfTheInheritedGroupPermission()
           
 void testRemoveAllPermissions()
           
 void testRemoveGroup()
           
 void testRemoveUser()
           
 void testRestrictedHomePageAppearsOnList()
           
 void testSearchInheritedPermissions()
           
 void testSearchUserPermission()
           
 void testSecuredPagesHiddenInAlphabeticalView()
           
 void testSettingGroupPermissionWithNonAsciiCharacters()
           
 void testSpaceAdminCanRemoveRestrictions()
          Test for CONF-8135.
 void testSpaceAdministratorCannotSeeProtectedPage()
           
 void testSuperuserCanEditCommentsOnRestrictedPage()
           
 void testSuperUserCanSeeButNotFindProtectedPage()
           
 void testSuperuserCanSeeRestrictionIconWhenViewingRestrictedPage()
           
 void testSystemAdministratorCannotSeeProtectedPage()
           
 void testUpdatePagePermissionsDoesNotChangeLastModifier()
           
 void testUserCannotRestrictThemselvesFromEditingPage()
           
 void testUserCannotRestrictThemselvesFromViewingPage()
           
 void testUserPageLevelPermission()
           
 void testUserWithOnlyViewPermissionCannotRemovePermission()
           
 void testViewContentForLabelRespectsPageLevelPermissions()
           
 void testViewPageButtonNotRenderedWhenPageIsRestricted()
           
 void testViewPageSourceRestrictions()
           
 void testViewPermissionsProhibitEdit()
           
 void TODOXHTML_testPageIncludeMacroRespectsPageLevelPermissions()
           
protected  void viewTreeView(String key)
           
 
Methods inherited from class com.atlassian.confluence.AbstractPermissionsAcceptanceTest
assertGroupPermissionInViewPermissionsTable, assertUserHasNoPermissionsInViewPermissionsTable, assertUserPermissionErrorInViewPermissionsTable, assertUserPermissionInViewPermissionsTable, buildCheckboxParameterName, buildCheckboxParameterName, grantAdminSpaceToTestUser, grantCreateAttachmentToTestUser, grantCreateBlogToTestUser, grantCreateCommentToTestUser, grantCreatePageToTestUser, grantExportPageToTestUser, grantExportSpaceToTestUser, grantGlobalPermissionToGroup, grantGlobalPermissionToUser, grantRemoveAttachmentToTestUser, grantRemoveBlogToTestUser, grantRemoveCommentToTestUser, grantRemovePageToTestUser, grantSetPagePermissionsToTestUser, grantSpacePermissionToGroup, grantSpacePermissionToUser, grantViewSpacePermissionToAnonymous, removeAdminSpaceFromTestUser, removeCreateAttachmentFromTestUser, removeCreateBlogFromTestUser, removeCreateCommentFromTestUser, removeCreatePageFromTestUser, removeEditPermissions, removeExportPageFromTestUser, removeExportSpaceFromTestUser, removeRemoveAttachmentFromTestUser, removeRemoveBlogFromTestUser, removeRemoveCommentFromTestUser, removeRemovePageFromTestUser, removeSetPagePermissionsFromTestUser, removeViewPermissions, removeViewSpacePermissionToAnonymous, revokeGlobalPermissionFromUser, revokeSpacePermissionFromGroup, revokeSpacePermissionFromGroup, revokeSpacePermissionFromUser
 
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
addAnonymousPermissionsToSpace, addComment, addCommentToBlogPost, addSpaceLabel, addUserToGroupViaHelper, addWatchPage, assertImagePresent, assertImageValid, assertLinkPresentWithExactTextAndClass, assertLoggedInAs, assertMailReceived, assertNoMailReceived, attachFile, attachFile, attachFileWithName, chooseRandomBaseUrl, createBlog, createBlogInTestSpace, createGroup, createGroupViaHelper, createMail, createPage, createPageWithViewRestrictions, createSpaceViaWebUI, createSpaceViaWebUI, createSpaceViaWebUI, createTemplate, createTestMailServer, createTestSpaceViaWebUI, createUserViaHelper, createUserViaHelper, disableAnonymousAccess, disableAnonymousAccessToSpace, editBlog, editBlogLabels, editPage, editPageContent, editPageContentViaForm, editPageWithContent, editSpaceDescription, editSpacePermsForm, enableAnonymousAccess, enableAnonymousAccessToSpace, ensureTestUserCanViewTestSpace, forceViewGlobalAdmin, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getCurrentMailQueueSize, getCurrentPageId, getFriendlyRelativeDate, getPageId, getPluginHelper, getTodaysBlogPostDate, gotoPageWithError, grantAnonymousUseConfluencePermission, grantGlobalBrowsePermissionToGroup, grantGlobalPermissionToGroup, grantGlobalPermissionToUser, grantSpacePermissionToGroup, grantSpacePermissionToGroupAndDelegate, grantSpacePermissionToUser, grantSpacePermissionToUserAndDelegate, grantViewSpacePermissionToGroup, grantViewSpacePermissionToGroupAndDelegate, grantViewSpacePermissionToUser, importGlobalBackup, importGlobalBackup, importMail, importMailAndAssertNoRunningTask, importSpaceBackup, isClustered, logIn, logIn, logInAs, logInAs, loginAs, logInAsAdminAtDashboard, logInAsAtDashboard, loginAsAtDashboard, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtDashboard, loginViaForm, logout, makeParams, movePage, movePage, movePageToNewParent, movePageToNewParent, movePageToNewSpace, rebuildIndex, removeAnonymousPermissionToSpace, removeGroup, removePageLabel, removePageOrBlogById, removePersonalSpace, removeTestUser1, removeTestUser1ViaHelper, removeUser, removeUserFromGroupViaHelper, removeUserViaHelper, renamePage, revokeAnonymousUseConfluencePermission, revokeGlobalPermissionFromGroup, revokeGlobalPermissionFromUser, revokeSpacePermissionFromGroup, revokeSpacePermissionFromUser, rpcAddComment, rpcAddComment, rpcAddComment, rpcAddLabelToBlog, rpcAddLabelToPage, rpcAddLabelToPage, rpcAddLabelToSpace, rpcAddTestComment, rpcClearIndex, rpcClearQueue, rpcCreateBlogPost, rpcCreateBlogPost, rpcCreatePage, rpcCreatePage, rpcCreatePersonalSpace, rpcCreateSpace, rpcCreateSpace, rpcCreateSpaceGroup, rpcCreateTestSpace, rpcCreateTestSpace2, rpcCreateXhtmlPage, rpcEditBlogPost, rpcEditComment, rpcEditPage, rpcFlushAllCaches, rpcFlushIndexQueue, rpcFlushMailQueue, rpcGetAdminToken, rpcGetBlogPostId, rpcGetChildren, rpcGetComments, rpcGetLocalisedText, rpcGetMailQueueSize, rpcGetPageId, rpcGetPageLabels, rpcGetPageLabels, rpcGetTestUser2Token, rpcGetTestUserToken, rpcGetTopLevelPages, rpcGetUserGroups, rpcGetUserToken, rpcGetUserToken, rpcGetVersionForPage, rpcGrantAnonymousSpacePermission, rpcGrantGlobalPermission, rpcGrantSpacePermission, rpcGrantViewSpacePermission, rpcHasGroup, rpcHasUser, rpclogCommandOutput, rpcLogOut, rpcLogOutAdmin, rpcMovePage, rpcMovePageToTopLevel, rpcPauseJob, rpcRemoveAllSpaceGroups, rpcRemoveAnonymousSpacePermission, rpcRemoveAttachment, rpcRemoveComment, rpcRemoveComment, rpcRemoveGlobalPermissions, rpcRemoveGroup, rpcRemoveLabelFromPage, rpcRemoveLabelFromPage, rpcRemoveLabelFromSpace, rpcRemovePage, rpcRemoveSpace, rpcRemoveSpacePermission, rpcRenderContent, rpcRestoreAbstractPage, rpcResumeJob, rpcStoreBlogEntry, rpcTrashPage, rpcTrashPage, rpcTrashPage, rpcTriggerJob, search, setApplicationConfigProperty, setAttachmentMaxUploadSize, setBlogLabels, setCheckbox, setEditPermissionsForGroups, setEditPermissionsForUsers, setMaxAttachmentsInUI, setPageLabels, setSharedMode, setThreadedComments, setUp, setUpTestNG, setViewPermissionsForGroups, setViewPermissionsForUsers, showAllUsers, shutdownQuartz, stopTestMailServer, tearDown, tearDownTestNG, viewBlog, viewEditBlogPostPage, viewGlobalAdmin, viewGlobalPermissions, viewHomepage, viewLabel, viewLanguages, viewPage, viewPeopleDirectory, viewSpaceAdmin, viewSpaceAdvanced, viewSpaceContent, viewSpacePermissions, viewSpacePermissions, viewSpaceSummary, viewSpaceSummary, viewTodaysBlog, viewTrash, viewUser, watchPage, watchSpace, watchSpace, withParagraph, xmlRpcExecute
 
Methods inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase
assertCollectionContainsKeyWithValue, assertContains, assertContainsRegex, assertDoesNotContain, assertEndsWith, assertLinkNotPresentWithHrefContaining, assertLinkPresentWithHref, assertLinkPresentWithHrefContaining, assertLinkPresentWithTextAndHref, assertPageTitleEquals, assertServerResponseContains, assertServerResponseDoesNotContain, assertStartsWith, assertStatusCode, assertTextPresentInPageSource, assertTextsPresentInOrder, assertTextsPresentInOrder, assertTitleEquals, assertTitleEquals, getGroupFromResponse, setTextFieldUnlessBlank
 
Methods inherited from class com.atlassian.confluence.ThreadLocalWebTestCase
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertImagePresent, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getDialog, getElementAttributByXPath, getElementTextByXPath, getFormElementValue, getImage, getMessage, getMessage, getPageSource, getServeurResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, removeThreadLocal, reset, runBare, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setScriptingEnabled, setTestContext, setTester, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox, wrapWithPageSourceOnError
 
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

PARENT

protected static String PARENT

CHILD

protected static String CHILD

GRANDCHILD

protected static String GRANDCHILD

NO_VIEW_PERMS_MESSAGE

public static final String NO_VIEW_PERMS_MESSAGE
See Also:
Constant Field Values

NO_EDIT_PERMS_MESSAGE

public static final String NO_EDIT_PERMS_MESSAGE
See Also:
Constant Field Values
Constructor Detail

PagePermissionsAcceptanceTest

public PagePermissionsAcceptanceTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class AbstractConfluenceAcceptanceTest
Throws:
Exception

testRemoveUser

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

testRemoveGroup

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

testEditPermission

public void testEditPermission()
                        throws Exception
Throws:
Exception

testGroupEditPermission

public void testGroupEditPermission()
                             throws Exception
Throws:
Exception

testUserPageLevelPermission

public void testUserPageLevelPermission()
                                 throws Exception
Throws:
Exception

testGroupPageLevelPermission

public void testGroupPageLevelPermission()
                                  throws Exception
Throws:
Exception

testGroupPageLevelPermissionAreInherited

public void testGroupPageLevelPermissionAreInherited()
                                              throws org.apache.xmlrpc.XmlRpcException
restrict access to the whole hierarchy to confluence-admins only.

Throws:
org.apache.xmlrpc.XmlRpcException

testMovePageWithInheritedPermissions

public void testMovePageWithInheritedPermissions()
                                          throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testInheritedUserPermissions

public void testInheritedUserPermissions()
                                  throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testSearchInheritedPermissions

public void testSearchInheritedPermissions()
                                    throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testSearchUserPermission

public void testSearchUserPermission()
                              throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testPermissionsForUsersWithApostrophes

public void testPermissionsForUsersWithApostrophes()

testPermissionsForGroupsWithApostrophes

public void testPermissionsForGroupsWithApostrophes()

testCommentsAreProtected

public void testCommentsAreProtected()
                              throws Exception
Throws:
Exception

testAttachmentsAreProtected

public void testAttachmentsAreProtected()
                                 throws Exception
Throws:
Exception

testAttachmentsAreProtectedInHierarchy

public void testAttachmentsAreProtectedInHierarchy()
                                            throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testAttachmentMoveHonorsTargetSpacePermissions

public void testAttachmentMoveHonorsTargetSpacePermissions()

testPermissionCacheIsFlushedOnUpdateToPagePermission

public void testPermissionCacheIsFlushedOnUpdateToPagePermission()
                                                          throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testPermissionCacheIsFlushedOnRemovePagePermission

public void testPermissionCacheIsFlushedOnRemovePagePermission()
                                                        throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testEditLocksDontBehaveAsViewLocks

public void testEditLocksDontBehaveAsViewLocks()
                                        throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testSecuredPagesHiddenInAlphabeticalView

public void testSecuredPagesHiddenInAlphabeticalView()
                                              throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

TODOXHTML_testPageIncludeMacroRespectsPageLevelPermissions

public void TODOXHTML_testPageIncludeMacroRespectsPageLevelPermissions()
                                                                throws Exception
Throws:
Exception

testChildrenMacroRespectsPageLevelPermissions

public void testChildrenMacroRespectsPageLevelPermissions()
                                                   throws Exception
Throws:
Exception

testChildrenSectionOnViewPageRespectsPageLevelPermissions

public void testChildrenSectionOnViewPageRespectsPageLevelPermissions()
                                                               throws Exception
Throws:
Exception

testAnonymousUsersRespectPageLevelEditPermissions

public void testAnonymousUsersRespectPageLevelEditPermissions()
                                                       throws Exception
Throws:
Exception

testPagePermissionsArePreservedOnMove

public void testPagePermissionsArePreservedOnMove()
                                           throws Exception
Throws:
Exception

testOnlyPermittedPagesAreMoved

public void testOnlyPermittedPagesAreMoved()
                                    throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testAttachmentsOnProtectedPagesDoNotAppearOnDashboard

public void testAttachmentsOnProtectedPagesDoNotAppearOnDashboard()
                                                           throws Exception
Throws:
Exception

testExportWordLink

public void testExportWordLink()
                        throws Exception
Throws:
Exception

testExportWordLinkWithNoPermissions

public void testExportWordLinkWithNoPermissions()
                                         throws Exception
Throws:
Exception

testExportWordLinkAsAdmin

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

testExportWordLinkAsAnonymousUser

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

testExportWordLinkAsAnonymousUserWithNoPermissions

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

testViewContentForLabelRespectsPageLevelPermissions

public void testViewContentForLabelRespectsPageLevelPermissions()
                                                         throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testPageLevelPermissionsUpdatedOnPageMove

public void testPageLevelPermissionsUpdatedOnPageMove()
                                               throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testUserWithOnlyViewPermissionCannotRemovePermission

public void testUserWithOnlyViewPermissionCannotRemovePermission()
                                                          throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testViewPermissionsProhibitEdit

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

testRestrictedHomePageAppearsOnList

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

testUpdatePagePermissionsDoesNotChangeLastModifier

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

testPageMetadataNotUpdatedByEditingPermissions

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

testMenuOptionsUnavailableForRestrictedPage

public void testMenuOptionsUnavailableForRestrictedPage()

testMultipleGroupViewPermissions

public void testMultipleGroupViewPermissions()
                                      throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testMultipleUserViewPermissions

public void testMultipleUserViewPermissions()
                                     throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testExclusiveUserAndGroupViewPermissions

public void testExclusiveUserAndGroupViewPermissions()
                                              throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testRefiningViewPermissionsToASubsetOfUsersInTheInheritedGroupPermission

public void testRefiningViewPermissionsToASubsetOfUsersInTheInheritedGroupPermission()
                                                                              throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testRefiningViewPermissionsToPartsOfTheInheritedGroupPermission

public void testRefiningViewPermissionsToPartsOfTheInheritedGroupPermission()
                                                                     throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testCannotGeneraliseViewPermissionsToExtraPermission

public void testCannotGeneraliseViewPermissionsToExtraPermission()
                                                          throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testMultipleUserAndGroupEditPermissions

public void testMultipleUserAndGroupEditPermissions()
                                             throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

testRemoveAllPermissions

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

testCannotEditPageWithoutViewPermission

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

testSettingGroupPermissionWithNonAsciiCharacters

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

testViewPageButtonNotRenderedWhenPageIsRestricted

public void testViewPageButtonNotRenderedWhenPageIsRestricted()

createPageHierarchyWithDependents

protected void createPageHierarchyWithDependents()
                                          throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

createPageHierarchyWithoutDependants

protected void createPageHierarchyWithoutDependants()
                                             throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

createPageHierarchy

protected void createPageHierarchy(boolean addDependents)
                            throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

loginTestUser

protected void loginTestUser(String startPage)

loginAdmin

protected void loginAdmin(String startPage)

assertPageLinkExists

protected void assertPageLinkExists(String pageName)
Assert that the link to the exists on all of the pagesummary pages.


viewTreeView

protected void viewTreeView(String key)

assertPageLinkNotExists

protected void assertPageLinkNotExists(String pageName)
Assert that the link to the page does not exists on any of the pagesummary pages.


testCommentOnRestrictedSubPageSeperateFlushAfterEdit

public void testCommentOnRestrictedSubPageSeperateFlushAfterEdit()
                                                          throws Exception
Make sure added comments receive same inherited permissions. This form of the test adds the page and comment on seperate index flushes. This test edits the sub page and index's this edit in the same flush as the comment add. (add comment after edit page) see: CONF-6505

Throws:
Exception - e

testCommentOnRestrictedSubPageSeperateFlushBeforeEdit

public void testCommentOnRestrictedSubPageSeperateFlushBeforeEdit()
                                                           throws Exception
Make sure added comments receive same inherited permissions. This form of the test adds the page and comment on seperate index flushes. This test edits the sub page and index's this edit in the same flush as the comment add. (add comment after edit page) see: CONF-6505

Throws:
Exception - e

testCommentOnRestrictedSubPageSeperateFlush

public void testCommentOnRestrictedSubPageSeperateFlush()
                                                 throws Exception
Make sure added comments receive same inherited permissions. This form of the test adds the page and comment on seperate index flushes. see: CONF-6505

Throws:
Exception - e

testCommentOnRestrictedSubPageSameFlush

public void testCommentOnRestrictedSubPageSameFlush()
                                             throws Exception
Make sure added comments receive same inherited permissions. This form of the test adds the page and comment on the same index flushes. see: CONF-6505

Throws:
Exception - e

testSpaceAdminCanRemoveRestrictions

public void testSpaceAdminCanRemoveRestrictions()
                                         throws IOException,
                                                org.apache.xmlrpc.XmlRpcException
Test for CONF-8135. Space admins should be able to remove restrictions in their space.

Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testUserCannotRestrictThemselvesFromViewingPage

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

testUserCannotRestrictThemselvesFromEditingPage

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

testCannotViewPageDueToInheritedPermissionsMessage

public void testCannotViewPageDueToInheritedPermissionsMessage()
                                                        throws org.apache.xmlrpc.XmlRpcException
If the user cannot see a page due to inherited permissions, we should notify them of this appropriately. We should show this message when the user would otherwise be able to view the page (either because it has no permissions set on it, or that the permissions set on it do allow the user to see the page).

Throws:
org.apache.xmlrpc.XmlRpcException

testAdminCannotEditRestrictedPage

public void testAdminCannotEditRestrictedPage()

testPermissionsReflectAddMenuDisplay

public void testPermissionsReflectAddMenuDisplay()

testSuperUserCanSeeButNotFindProtectedPage

public void testSuperUserCanSeeButNotFindProtectedPage()

testSystemAdministratorCannotSeeProtectedPage

public void testSystemAdministratorCannotSeeProtectedPage()

testSpaceAdministratorCannotSeeProtectedPage

public void testSpaceAdministratorCannotSeeProtectedPage()

testPagingOnRestrictedPages

public void testPagingOnRestrictedPages()

testCreateChildPageOfRestrictedParent

public void testCreateChildPageOfRestrictedParent()

testViewPageSourceRestrictions

public void testViewPageSourceRestrictions()
                                    throws Exception
Throws:
Exception

testSuperuserCanSeeRestrictionIconWhenViewingRestrictedPage

public void testSuperuserCanSeeRestrictionIconWhenViewingRestrictedPage()

testSuperuserCanEditCommentsOnRestrictedPage

public void testSuperuserCanEditCommentsOnRestrictedPage()


Copyright © 2003-2011 Atlassian. All Rights Reserved.