public class

LdapReadOnlyAcceptanceTest

extends AbstractDefaultPropertiesLdapAcceptanceTest
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ com.atlassian.confluence.ThreadLocalWebTestCase
         ↳ com.atlassian.confluence.AbstractAtlassianWebTestCase
           ↳ com.atlassian.confluence.AbstractConfluenceAcceptanceTest
             ↳ com.atlassian.confluence.AbstractLdapAcceptanceTest
               ↳ com.atlassian.confluence.AbstractDefaultPropertiesLdapAcceptanceTest
                 ↳ com.atlassian.confluence.LdapReadOnlyAcceptanceTest

Class Overview

Tests functionality specific to LDAP read-only mode.

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
[Expand]
Inherited Fields
From class com.atlassian.confluence.AbstractLdapAcceptanceTest
From class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
Public Constructors
LdapReadOnlyAcceptanceTest()
Public Methods
void disabledTestSiteReimportRetainsDirectories()
Make sure that doing a site reimport retains directory configuration
void testAddInternalUserToLdapGroup()
void testAddInternalUserToLdapGroupViaRpc()
void testBatchSync()
Test batch synchronisation for LDAP read only by adding groups (nested), users, memberships, doing a sync, asserting, removing some of them, asserting again, and then cleaning up afterwards.
void testCannotAddLdapUserToGroup()
void testCannotAddLdapUserToGroupViaRpc()
void testCannotRemoveLdapGroup()
void testCannotRemoveLdapUserFromLdapGroup()
void testCannotRemoveLdapUserFromLdapGroupViaRpc()
void testChangeUserPropertyAndMembershipBetweenSyncs()
CONF-22410 change a user property + change the same user to be a member of some group in LDAP between syncs
void testDisableUser()
Read-only users should not be disableable
void testLdapUserCanLogIn()
void testLimitedProfileFieldsEditableForLdapUsers()
void testNoRemoveLinkForLdapUser()
void testPermissionsOnRemovedGroupsAreIgnoredOnPageNoAccess()
void testPermissionsOnRemovedGroupsAreIgnoredOnPageViewAccess()
void testPermissionsOnRemovedGroupsAreIgnoredOnSpaceAdminAccess()
void testPermissionsOnRemovedGroupsAreIgnoredOnSpaceNoAccess()
void testPermissionsOnRemovedUsersAreIgnoredOnPageNoAccess()
void testPermissionsOnRemovedUsersAreIgnoredOnPageViewAccess()
void testPermissionsOnRemovedUsersAreIgnoredOnSpaceAdminAccess()
void testPermissionsOnRemovedUsersAreIgnoredOnSpaceNoAccess()
void testRemoveGroupAddMembersToAnotherGroupBetweenSyncs()
CONF-22410 delete group (which also affects a user) + add the same user to another group in LDAP between syncs
Protected Methods
LdapDirectoryPermission getLdapDirectoryPermission()
Override to change the permission setting for the LDAP directory.
void onSetUp()
Override to execute custom set-up code.
void onTearDown()
Override to execute custom tear-down code.
void postProcessConfiguration()
Override to modify the LDAP configuration before it is saved.
[Expand]
Inherited Methods
From class com.atlassian.confluence.AbstractDefaultPropertiesLdapAcceptanceTest
From class com.atlassian.confluence.AbstractLdapAcceptanceTest
From class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
From class com.atlassian.confluence.ThreadLocalWebTestCase
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public LdapReadOnlyAcceptanceTest ()

Public Methods

public void disabledTestSiteReimportRetainsDirectories ()

Make sure that doing a site reimport retains directory configuration

Throws
IOException if there was an error downloading the export
InterruptedException if the import was interrupted

public void testAddInternalUserToLdapGroup ()

public void testAddInternalUserToLdapGroupViaRpc ()

public void testBatchSync ()

Test batch synchronisation for LDAP read only by adding groups (nested), users, memberships, doing a sync, asserting, removing some of them, asserting again, and then cleaning up afterwards.

public void testCannotAddLdapUserToGroup ()

Throws
Exception

public void testCannotAddLdapUserToGroupViaRpc ()

Throws
Exception

public void testCannotRemoveLdapGroup ()

public void testCannotRemoveLdapUserFromLdapGroup ()

Throws
Exception

public void testCannotRemoveLdapUserFromLdapGroupViaRpc ()

Throws
Exception

public void testChangeUserPropertyAndMembershipBetweenSyncs ()

CONF-22410 change a user property + change the same user to be a member of some group in LDAP between syncs

public void testDisableUser ()

Read-only users should not be disableable

public void testLdapUserCanLogIn ()

Throws
Exception

public void testLimitedProfileFieldsEditableForLdapUsers ()

public void testNoRemoveLinkForLdapUser ()

public void testPermissionsOnRemovedGroupsAreIgnoredOnPageNoAccess ()

public void testPermissionsOnRemovedGroupsAreIgnoredOnPageViewAccess ()

public void testPermissionsOnRemovedGroupsAreIgnoredOnSpaceAdminAccess ()

public void testPermissionsOnRemovedGroupsAreIgnoredOnSpaceNoAccess ()

public void testPermissionsOnRemovedUsersAreIgnoredOnPageNoAccess ()

public void testPermissionsOnRemovedUsersAreIgnoredOnPageViewAccess ()

public void testPermissionsOnRemovedUsersAreIgnoredOnSpaceAdminAccess ()

public void testPermissionsOnRemovedUsersAreIgnoredOnSpaceNoAccess ()

public void testRemoveGroupAddMembersToAnotherGroupBetweenSyncs ()

CONF-22410 delete group (which also affects a user) + add the same user to another group in LDAP between syncs

Protected Methods

protected LdapDirectoryPermission getLdapDirectoryPermission ()

Override to change the permission setting for the LDAP directory. Default is READ_WRITE.

protected void onSetUp ()

Override to execute custom set-up code.

Throws
Exception

protected void onTearDown ()

Override to execute custom tear-down code.

Throws
Exception

protected void postProcessConfiguration ()

Override to modify the LDAP configuration before it is saved. Use the webTester to set form values, etc.