com.atlassian.confluence
Class PagePermissionsAcceptanceTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.confluence.ThreadLocalWebTestCase
com.atlassian.confluence.AbstractAtlassianWebTestCase
com.atlassian.confluence.AbstractConfluenceAcceptanceTest
com.atlassian.confluence.AbstractPermissionsAcceptanceTest
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.
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest |
adminConsole, ANONYMOUS_USER, BROWSE_MENU_LINK_ID, context, CROWD_MODE, DASHBOARD_RECENT_UPDATES_URL, DIRECTORY_CONFIG, filesToDelete, log, logAdjuster, loginHelper, mailServices, RANDOM, rpc, serverStateManager, 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, testData, TESTMAILSERVER_HOSTNAME, TESTMAILSERVER_NAME, TESTPAGE_COMMENT, TESTPAGE_CONTENT, TESTPAGE_TITLE, TESTSPACE_KEY, TESTSPACE_TITLE, TESTSPACE2_KEY, TESTSPACE2_TITLE, userHelper, VIEW_PERSONAL_SPACE_LINK, wikiMarkupRpc |
Methods inherited from class com.atlassian.confluence.AbstractPermissionsAcceptanceTest |
assertDoesNotHavePermission, assertDoesNotHavePermission, assertHasPermission, assertHasPermission, assertHasPermission, assertUserHasEntryInViewPermissionsTable, assertUserHasNoPermissionsInViewPermissionsTable, assertUserPermissionErrorInViewPermissionsTable, assertUserPermissionInViewPermissionsTable, buildCheckboxParameterName, buildCheckboxParameterName, grantAdminSpaceToTestUser, grantCreateAttachmentToTestUser, grantCreateBlogToTestUser, grantCreateCommentToTestUser, grantCreatePageToTestUser, grantExportPageToTestUser, grantExportSpaceToTestUser, grantGlobalPermissionToGroup, grantGlobalPermissionToUser, grantRemoveAttachmentToTestUser, grantRemoveBlogToTestUser, grantRemoveCommentToTestUser, grantRemovePageToTestUser, grantSetPagePermissionsToTestUser, grantViewSpacePermissionToAnonymous, removeAdminSpaceFromTestUser, removeCreateAttachmentFromTestUser, removeCreateBlogFromTestUser, removeCreateCommentFromTestUser, removeCreatePageFromTestUser, removeEditPermissions, removeExportPageFromTestUser, removeExportSpaceFromTestUser, removeRemoveAttachmentFromTestUser, removeRemoveBlogFromTestUser, removeRemoveCommentFromTestUser, removeRemovePageFromTestUser, removeSetPagePermissionsFromTestUser, removeViewPermissions, removeViewSpacePermissionToAnonymous, revokeGlobalPermissionFromUser, revokeSpacePermissionFromGroup |
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest |
addUserToGroupViaHelper, addWatchPage, assertImagePresent, assertImageValid, assertLinkPresentWithExactTextAndClass, assertMailReceived, assertNoMailReceived, attachFile, attachFile, attachFileWithName, createGroup, createGroupViaHelper, createMail, createPage, createPageWithViewRestrictions, createSpaceViaWebUI, createTestMailServer, createTestSpaceViaWebUI, createUserViaHelper, disableAnonymousAccess, editPage, editPageContent, editPageWithContent, editSpaceDescription, editSpacePermsForm, enableAnonymousAccess, ensureTestUserCanViewTestSpace, forceViewGlobalAdmin, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getCurrentMailQueueSize, getCurrentPageId, getFriendlyRelativeDate, getLoginButtonId, getPageId, getPluginHelper, gotoPageWithError, importMail, importMailAndAssertNoRunningTask, isClustered, logIn, logInAs, logInAs, logInAs, logInAsAdminAtHomepage, logInAsAtHomepage, logInAsAtHomepage, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtHomepage, loginViaForm, logout, movePage, movePageToNewParent, movePageToNewParent, movePageToNewSpace, rebuildIndex, removeGroup, removePageLabel, removePageOrBlogById, removeTestUser1ViaHelper, removeUserViaHelper, renamePage, search, setAttachmentMaxUploadSize, setBlogLabels, setEditPermissionsForGroups, setEditPermissionsForUsers, setMaxAttachmentsInUI, setPageLabels, setThreadedComments, setUp, setUpTestNG, setViewPermissionsForGroups, setViewPermissionsForUsers, stopTestMailServer, tearDown, tearDownTestNG, viewGlobalPermissions, viewHomepage, viewLabel, viewLanguages, viewPage, viewPage, viewPeopleDirectory, viewSpaceAdmin, viewSpaceAdvanced, viewSpaceContent, viewSpacePermissions, viewSpaceSummary, viewSpaceSummary, viewTrash, watchPage, watchSpace, watchSpace |
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, failNotEquals, failNotSame, failSame, format |
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
PagePermissionsAcceptanceTest
public PagePermissionsAcceptanceTest()
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.
testCommentOnRestrictedSubPageSeparateFlushAfterEdit
public void testCommentOnRestrictedSubPageSeparateFlushAfterEdit()
throws Exception
- Make sure added comments receive same inherited permissions.
This form of the test adds the page and comment on separate 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
testCommentOnRestrictedSubPageSeparateFlushBeforeEdit
public void testCommentOnRestrictedSubPageSeparateFlushBeforeEdit()
throws Exception
- Make sure added comments receive same inherited permissions.
This form of the test adds the page and comment on separate 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
testCommentOnRestrictedSubPageSeparateFlush
public void testCommentOnRestrictedSubPageSeparateFlush()
throws Exception
- Make sure added comments receive same inherited permissions.
This form of the test adds the page and comment on separate 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-2012 Atlassian. All Rights Reserved.