com.atlassian.crowd.acceptance.tests.applications.crowd
Class SynchroniseCrowdDirectoryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
              extended by com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
                  extended by com.atlassian.crowd.acceptance.tests.applications.crowd.SynchroniseCrowdDirectoryTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
SynchroniseCrowdDirectoryFullTest

public class SynchroniseCrowdDirectoryTest
extends CrowdAcceptanceTestCase

Tests that we can synchronise successfully with remote Crowd directory.


Field Summary
protected static java.lang.String LOCAL_DIRECTORY_NAME
           
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
ADMIN_EMAIL, ADMIN_FULL_NAME, ADMIN_GROUP, ADMIN_PW, ADMIN_USER, CONSOLE_PORT, CONTEXT_PATH, DEVELOPER_LICENSE_KEY, EXPIRED_MAINTENANCE_KEY, HOST, HOST_PATH, logger, specProperties, UNLIMITED_LICENSE_KEY, URL_HOME, WAR_PATH, WORKGROUP_LICENSE_KEY
 
Fields inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
tester
 
Constructor Summary
SynchroniseCrowdDirectoryTest()
           
SynchroniseCrowdDirectoryTest(SynchronisationMode expectedMode)
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testSynchroniseAll_ClientDirectoryConfigurationChanged()
           
 void testSynchroniseAll_ServerApplicationDirectoryAdded()
           
 void testSynchroniseAll_ServerApplicationDirectoryRemoved()
           
 void testSynchroniseAll_ServerApplicationHasUncachedDirectory()
           
 void testSynchroniseAll_ServerDirectoryConfigurationChanged()
           
 void testSynchroniseAll_ServerDirectoryDeleted()
           
 void testSynchroniseAll_ServerXMLRestored()
           
 void testSynchroniseChanges_CreateMaskedGroup()
           
 void testSynchroniseChanges_CreateMaskedGroupMembership()
           
 void testSynchroniseChanges_CreateMaskedUser()
           
 void testSynchroniseChanges_CreateMaskedUserMembership()
           
 void testSynchroniseChanges_CreateMaskingGroup()
           
 void testSynchroniseChanges_CreateMaskingGroupMembership()
           
 void testSynchroniseChanges_CreateMaskingUser()
           
 void testSynchroniseChanges_CreateMaskingUserMembership()
           
 void testSynchroniseChanges_CreateUniqueLocalGroup()
           
 void testSynchroniseChanges_CreateUniqueLocalUser()
           
 void testSynchroniseChanges_CreateUniqueRemoteGroup()
           
 void testSynchroniseChanges_CreateUniqueRemoteGroupMembership()
           
 void testSynchroniseChanges_CreateUniqueRemoteUser()
           
 void testSynchroniseChanges_CreateUniqueRemoteUserMembership()
           
 void testSynchroniseChanges_RemoveMaskedGroup()
           
 void testSynchroniseChanges_RemoveMaskedGroupMembership()
           
 void testSynchroniseChanges_RemoveMaskedUser()
           
 void testSynchroniseChanges_RemoveMaskedUserMembership()
           
 void testSynchroniseChanges_RemoveMaskingGroup()
           
 void testSynchroniseChanges_RemoveMaskingGroupMembership()
           
 void testSynchroniseChanges_RemoveMaskingUser()
           
 void testSynchroniseChanges_RemoveMaskingUserMembership()
           
 void testSynchroniseChanges_RemoveUniqueRemoteGroup()
           
 void testSynchroniseChanges_RemoveUniqueRemoteGroupMembership()
           
 void testSynchroniseChanges_RemoveUniqueRemoteUser()
           
 void testSynchroniseChanges_RemoveUniqueRemoteUserMembership()
           
 void testSynchroniseChanges_UpdateMaskedGroup()
           
 void testSynchroniseChanges_UpdateMaskedUser()
           
 void testSynchroniseChanges_UpdateMaskingGroup()
           
 void testSynchroniseChanges_UpdateMaskingUser()
           
 void testSynchroniseChanges_UpdateUniqueRemoteGroup()
           
 void testSynchroniseChanges_UpdateUniqueRemoteUser()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
_getTestProperty, _loginAdminUser, _loginAsUser, _logout, addRole, assertUserInTable, assertUserInTable, assertUserNotInTable, getBaseUrl, getCrowdApplicationPassword, getCrowdContext, getCrowdHome, getText, gotoAddApplication, gotoAddGroup, gotoAddPrincipal, gotoAddRole, gotoBackup, gotoBrowseApplications, gotoBrowseDirectories, gotoBrowseGroups, gotoBrowseGroups, gotoBrowsePrincipals, gotoBrowsePrincipals, gotoBrowseRoles, gotoCreateDirectory, gotoCurrentApplicationSessions, gotoCurrentPrincipalSessions, gotoGeneral, gotoImporters, gotoLdapConnectionPool, gotoLicensing, gotoLoggingProfiling, gotoMailServer, gotoMailTemplate, gotoRemovePrincipal, gotoRestore, gotoSAMLConfig, gotoSessionConfig, gotoSystemInfo, gotoTrustedProxies, gotoViewApplication, gotoViewGroup, gotoViewPrincipal, gotoViewRole, log, restoreBaseSetup, restoreCrowdFromXML, restoreCrowdFromXMLWithoutReloggingIn, restoreCrowdFromXMLWithoutReloggingIn
 
Methods inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
addRequestHeader, assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertErrorPresentWithText, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertKeyInElement, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeyPresentOnce, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithKey, 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, assertServerResponseContains, assertServerResponseDoesNotContain, 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, assertTextPresent, assertTitleEquals, assertTitleEqualsKey, assertTitleMatch, assertWarningAndErrorNotPresent, assertWarningNotPresent, assertWarningPresent, assertWarningPresentWithKey, assertWarningPresentWithText, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithKey, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getDialog, getElementAttributeByXPath, getElementTextById, getElementTextByXPath, getFormElementValue, getMessage, getPageSource, getPageText, getServerResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, isTextPresent, reset, runBare, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setRadioButton, setScriptingEnabled, setTestContext, setTester, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox, waitFor, waitForElementById, waitForElementByXPath, waitForText, waitForText
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCAL_DIRECTORY_NAME

protected static final java.lang.String LOCAL_DIRECTORY_NAME
See Also:
Constant Field Values
Constructor Detail

SynchroniseCrowdDirectoryTest

public SynchroniseCrowdDirectoryTest()

SynchroniseCrowdDirectoryTest

public SynchroniseCrowdDirectoryTest(SynchronisationMode expectedMode)
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class CrowdAcceptanceTestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class CrowdAcceptanceTestCase
Throws:
java.lang.Exception

testSynchroniseChanges_CreateUniqueRemoteUser

public void testSynchroniseChanges_CreateUniqueRemoteUser()

testSynchroniseChanges_CreateUniqueLocalUser

public void testSynchroniseChanges_CreateUniqueLocalUser()

testSynchroniseChanges_CreateMaskingUser

public void testSynchroniseChanges_CreateMaskingUser()

testSynchroniseChanges_CreateMaskedUser

public void testSynchroniseChanges_CreateMaskedUser()

testSynchroniseChanges_RemoveUniqueRemoteUser

public void testSynchroniseChanges_RemoveUniqueRemoteUser()

testSynchroniseChanges_RemoveMaskingUser

public void testSynchroniseChanges_RemoveMaskingUser()

testSynchroniseChanges_RemoveMaskedUser

public void testSynchroniseChanges_RemoveMaskedUser()

testSynchroniseChanges_UpdateUniqueRemoteUser

public void testSynchroniseChanges_UpdateUniqueRemoteUser()

testSynchroniseChanges_UpdateMaskingUser

public void testSynchroniseChanges_UpdateMaskingUser()

testSynchroniseChanges_UpdateMaskedUser

public void testSynchroniseChanges_UpdateMaskedUser()

testSynchroniseChanges_CreateUniqueRemoteGroup

public void testSynchroniseChanges_CreateUniqueRemoteGroup()

testSynchroniseChanges_CreateUniqueLocalGroup

public void testSynchroniseChanges_CreateUniqueLocalGroup()

testSynchroniseChanges_CreateMaskingGroup

public void testSynchroniseChanges_CreateMaskingGroup()

testSynchroniseChanges_CreateMaskedGroup

public void testSynchroniseChanges_CreateMaskedGroup()

testSynchroniseChanges_RemoveUniqueRemoteGroup

public void testSynchroniseChanges_RemoveUniqueRemoteGroup()

testSynchroniseChanges_RemoveMaskingGroup

public void testSynchroniseChanges_RemoveMaskingGroup()

testSynchroniseChanges_RemoveMaskedGroup

public void testSynchroniseChanges_RemoveMaskedGroup()

testSynchroniseChanges_UpdateUniqueRemoteGroup

public void testSynchroniseChanges_UpdateUniqueRemoteGroup()

testSynchroniseChanges_UpdateMaskingGroup

public void testSynchroniseChanges_UpdateMaskingGroup()

testSynchroniseChanges_UpdateMaskedGroup

public void testSynchroniseChanges_UpdateMaskedGroup()

testSynchroniseChanges_CreateUniqueRemoteUserMembership

public void testSynchroniseChanges_CreateUniqueRemoteUserMembership()
                                                             throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_CreateMaskingUserMembership

public void testSynchroniseChanges_CreateMaskingUserMembership()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_CreateMaskedUserMembership

public void testSynchroniseChanges_CreateMaskedUserMembership()
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_RemoveUniqueRemoteUserMembership

public void testSynchroniseChanges_RemoveUniqueRemoteUserMembership()
                                                             throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_RemoveMaskingUserMembership

public void testSynchroniseChanges_RemoveMaskingUserMembership()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_RemoveMaskedUserMembership

public void testSynchroniseChanges_RemoveMaskedUserMembership()
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_CreateUniqueRemoteGroupMembership

public void testSynchroniseChanges_CreateUniqueRemoteGroupMembership()
                                                              throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_CreateMaskingGroupMembership

public void testSynchroniseChanges_CreateMaskingGroupMembership()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_CreateMaskedGroupMembership

public void testSynchroniseChanges_CreateMaskedGroupMembership()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_RemoveUniqueRemoteGroupMembership

public void testSynchroniseChanges_RemoveUniqueRemoteGroupMembership()
                                                              throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_RemoveMaskedGroupMembership

public void testSynchroniseChanges_RemoveMaskedGroupMembership()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseChanges_RemoveMaskingGroupMembership

public void testSynchroniseChanges_RemoveMaskingGroupMembership()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseAll_ClientDirectoryConfigurationChanged

public void testSynchroniseAll_ClientDirectoryConfigurationChanged()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseAll_ServerDirectoryConfigurationChanged

public void testSynchroniseAll_ServerDirectoryConfigurationChanged()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseAll_ServerDirectoryDeleted

public void testSynchroniseAll_ServerDirectoryDeleted()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseAll_ServerXMLRestored

public void testSynchroniseAll_ServerXMLRestored()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseAll_ServerApplicationDirectoryAdded

public void testSynchroniseAll_ServerApplicationDirectoryAdded()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseAll_ServerApplicationDirectoryRemoved

public void testSynchroniseAll_ServerApplicationDirectoryRemoved()
                                                          throws java.lang.Exception
Throws:
java.lang.Exception

testSynchroniseAll_ServerApplicationHasUncachedDirectory

public void testSynchroniseAll_ServerApplicationHasUncachedDirectory()


Copyright © 2012 Atlassian. All Rights Reserved.