|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class LdapReadOnlyAcceptanceTest
Tests functionality specific to LDAP read-only mode.
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.AbstractLdapAcceptanceTest |
---|
configurationCallBack, internalDirectory, ldapDirectory, ldapHelper, userDirectories |
Fields inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase |
---|
SITE_TITLE_SUFFIX, TITLE_SEPARATOR |
Constructor Summary | |
---|---|
LdapReadOnlyAcceptanceTest()
|
Method Summary | |
---|---|
void |
disabledTestSiteReimportRetainsDirectories()
Make sure that doing a site reimport retains directory configuration |
protected LdapDirectoryPermission |
getLdapDirectoryPermission()
Override to change the permission setting for the LDAP directory. |
protected void |
onSetUp()
Override to execute custom set-up code. |
protected void |
onTearDown()
Override to execute custom tear-down code. |
protected void |
postProcessConfiguration()
Override to modify the LDAP configuration before it is saved. |
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 |
testNoRemoveLinksForGroupsWithOnlyReadOnlyDirectories()
|
void |
testRemoveGroupAddMembersToAnotherGroupBetweenSyncs()
CONF-22410 delete group (which also affects a user) + add the same user to another group in LDAP between syncs |
Methods inherited from class com.atlassian.confluence.AbstractDefaultPropertiesLdapAcceptanceTest |
---|
ldapPropertiesFile |
Methods inherited from class com.atlassian.confluence.AbstractLdapAcceptanceTest |
---|
addLdapDirectory, initialiseLdapData, runBare, setUp, tearDown |
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 |
Constructor Detail |
---|
public LdapReadOnlyAcceptanceTest()
Method Detail |
---|
protected void onSetUp() throws Exception
AbstractLdapAcceptanceTest
onSetUp
in class AbstractLdapAcceptanceTest
Exception
protected void onTearDown() throws Exception
AbstractLdapAcceptanceTest
onTearDown
in class AbstractLdapAcceptanceTest
Exception
protected LdapDirectoryPermission getLdapDirectoryPermission()
AbstractLdapAcceptanceTest
LdapDirectoryPermission.READ_WRITE
.
getLdapDirectoryPermission
in class AbstractLdapAcceptanceTest
protected void postProcessConfiguration()
AbstractLdapAcceptanceTest
postProcessConfiguration
in class AbstractLdapAcceptanceTest
public void testLdapUserCanLogIn() throws Exception
Exception
public void testLimitedProfileFieldsEditableForLdapUsers()
public void testCannotAddLdapUserToGroup() throws Exception
Exception
public void testCannotAddLdapUserToGroupViaRpc() throws Exception
Exception
public void testAddInternalUserToLdapGroup()
public void testAddInternalUserToLdapGroupViaRpc()
public void testCannotRemoveLdapUserFromLdapGroup() throws Exception
Exception
public void testCannotRemoveLdapUserFromLdapGroupViaRpc() throws Exception
Exception
public void testDisableUser()
public void testCannotRemoveLdapGroup()
public void testNoRemoveLinkForLdapUser()
public void testNoRemoveLinksForGroupsWithOnlyReadOnlyDirectories() throws Exception
Exception
public void testBatchSync()
public void testChangeUserPropertyAndMembershipBetweenSyncs()
public void testRemoveGroupAddMembersToAnotherGroupBetweenSyncs()
public void disabledTestSiteReimportRetainsDirectories() throws IOException, InterruptedException
IOException
- if there was an error downloading the export
InterruptedException
- if the import was interrupted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |