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

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.jwebunit.junit.WebTestCase
              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 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, DEVELOPER_LICENSE_KEY, EXPIRED_MAINTENANCE_KEY, HOST_PATH, logger, specProperties, UNLIMITED_LICENSE_KEY, URL_HOME, WORKGROUP_LICENSE_KEY
 
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase
customTester, tester
 
Constructor Summary
SynchroniseCrowdDirectoryTest()
           
SynchroniseCrowdDirectoryTest(SynchronisationMode expectedMode)
           
 
Method Summary
protected  void _doInitialSync()
           
 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_ChangeUserAliasForcesFullSync()
           
 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_CreateUniqueActiveLocalUser()
           
 void testSynchroniseChanges_CreateUniqueActiveRemoteUser()
           
 void testSynchroniseChanges_CreateUniqueInactiveLocalUser()
           
 void testSynchroniseChanges_CreateUniqueInactiveRemoteUser()
           
 void testSynchroniseChanges_CreateUniqueLocalGroup()
           
 void testSynchroniseChanges_CreateUniqueRemoteGroup()
           
 void testSynchroniseChanges_CreateUniqueRemoteGroupMembership()
           
 void testSynchroniseChanges_CreateUniqueRemoteUserMembership()
           
 void testSynchroniseChanges_RemoveAliasedUserForcesFullSync()
           
 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_RemoveUniqueRemoteUserMembershipAndRecreateUniqueRemoteUserMembership()
          This tests demonstrates that a failed incremental synchronisation falls back to a full synchronisation in the first attempt (CWD-3188).
 void testSynchroniseChanges_UpdateApplicationForcesFullSync()
           
 void testSynchroniseChanges_UpdateMaskedGroup()
           
 void testSynchroniseChanges_UpdateMaskedUser()
           
 void testSynchroniseChanges_UpdateMaskingGroup()
           
 void testSynchroniseChanges_UpdateMaskingUser()
           
 void testSynchroniseChanges_UpdateUniqueLocalUser()
           
 void testSynchroniseChanges_UpdateUniqueRemoteGroup()
           
 void testSynchroniseChanges_UpdateUniqueRemoteUser()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
_loginAdminUser, _loginAsUser, _logout, assertUnescapedKeyNotPresent, assertUnescapedKeyPresent, assertUserInTable, assertUserInTable, assertUserNotInTable, getBaseUrl, getCrowdApplicationPassword, getCrowdHome, getText, gotoAddApplication, gotoAddGroup, gotoAddPrincipal, gotoAdministrationPage, gotoBackup, gotoBrowseApplications, gotoBrowseDirectories, gotoBrowseGroups, gotoBrowseGroups, gotoBrowsePrincipals, gotoBrowsePrincipals, gotoCreateDirectory, gotoCurrentApplicationSessions, gotoCurrentPrincipalSessions, gotoGeneral, gotoImporters, gotoLdapConnectionPool, gotoLicensing, gotoLoggingProfiling, gotoMailServer, gotoMailTemplate, gotoRemovePrincipal, gotoRestore, gotoSAMLConfig, gotoSessionConfig, gotoSystemInfo, gotoTrustedProxies, gotoViewApplication, gotoViewGroup, gotoViewPrincipal, intendToModifyData, intendToModifyLdapData, log, restoreBaseSetup, restoreCrowdFromXML, submitLoginForm, submitLoginFormAsAdminUser
 
Methods inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
addRequestHeader, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertKeyInElement, assertKeyPresent, assertKeyPresent, assertKeyPresent, assertKeyPresentOnce, assertLinkPresentWithKey, assertServerResponseContains, assertServerResponseDoesNotContain, assertSuccessPresent, assertTextPresent, assertWarningAndErrorNotPresent, assertWarningNotPresent, assertWarningPresent, clickLinkWithKey, getElementTextById, getPageText, isTextPresent, scrapeTable, scrapeTable, setRadioButton, setTester, waitFor, waitForElementById, waitForElementByXPath, waitForText, waitForText
 
Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCommentNotPresent, assertCommentPresent, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHeaderEquals, assertHeaderMatches, assertHeaderNotPresent, assertHeaderPresent, assertHiddenFieldPresent, assertImagePresent, assertImagePresentPartial, assertImageValid, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLabeledFieldEquals, assertLabelMatches, assertLabelPresent, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatch, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertNotMatch, assertNotMatch, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertResponseCode, assertResponseCodeBetween, assertSelectedOptionEquals, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, 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, assertTitleEquals, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertTitleNotEquals, assertTitleNotSame, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getAllHeaders, getComments, getDialog, getElementAttributByXPath, getElementAttributeByXPath, getElementById, getElementByXPath, getElementsByXPath, getElementTextByXPath, getFieldsForLabel, getFormElementValue, getHeader, getImage, getLabeledFieldValue, getMessage, getMessage, getPageSource, getResponseHeaders, getServerResponse, getServeurResponse, getTable, getTestContext, getTester, getTestingEngine, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOption, selectOptionByValue, selectOptionByValue, selectOptions, selectOptions, selectOptionsByValues, selectOptionsByValues, setBaseUrl, setBaseUrl, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setHiddenField, setIgnoreFailingStatusCodes, setLabeledFormElementField, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setTimeout, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
 
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 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 Exception
Overrides:
setUp in class CrowdAcceptanceTestCase
Throws:
Exception

tearDown

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

_doInitialSync

protected void _doInitialSync()

testSynchroniseChanges_CreateUniqueActiveRemoteUser

public void testSynchroniseChanges_CreateUniqueActiveRemoteUser()

testSynchroniseChanges_CreateUniqueInactiveRemoteUser

public void testSynchroniseChanges_CreateUniqueInactiveRemoteUser()

testSynchroniseChanges_CreateUniqueActiveLocalUser

public void testSynchroniseChanges_CreateUniqueActiveLocalUser()

testSynchroniseChanges_CreateUniqueInactiveLocalUser

public void testSynchroniseChanges_CreateUniqueInactiveLocalUser()

testSynchroniseChanges_CreateMaskingUser

public void testSynchroniseChanges_CreateMaskingUser()

testSynchroniseChanges_CreateMaskedUser

public void testSynchroniseChanges_CreateMaskedUser()

testSynchroniseChanges_UpdateApplicationForcesFullSync

public void testSynchroniseChanges_UpdateApplicationForcesFullSync()

testSynchroniseChanges_ChangeUserAliasForcesFullSync

public void testSynchroniseChanges_ChangeUserAliasForcesFullSync()

testSynchroniseChanges_RemoveAliasedUserForcesFullSync

public void testSynchroniseChanges_RemoveAliasedUserForcesFullSync()

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_UpdateUniqueLocalUser

public void testSynchroniseChanges_UpdateUniqueLocalUser()

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 Exception
Throws:
Exception

testSynchroniseChanges_CreateMaskingUserMembership

public void testSynchroniseChanges_CreateMaskingUserMembership()
                                                        throws Exception
Throws:
Exception

testSynchroniseChanges_CreateMaskedUserMembership

public void testSynchroniseChanges_CreateMaskedUserMembership()
                                                       throws Exception
Throws:
Exception

testSynchroniseChanges_RemoveUniqueRemoteUserMembership

public void testSynchroniseChanges_RemoveUniqueRemoteUserMembership()
                                                             throws Exception
Throws:
Exception

testSynchroniseChanges_RemoveUniqueRemoteUserMembershipAndRecreateUniqueRemoteUserMembership

public void testSynchroniseChanges_RemoveUniqueRemoteUserMembershipAndRecreateUniqueRemoteUserMembership()
                                                                                                  throws Exception
This tests demonstrates that a failed incremental synchronisation falls back to a full synchronisation in the first attempt (CWD-3188). It exploits the bug in CWD-3182 to cause the incremental synchronisation to fail, but it won't work once CWD-3182 is fixed. Once that happens, the assertions at the end of the test will require some changes, but the test should be kept to prevent regressions of CWD-3182. This test is overridden by the subclass because it is only relevant to incremental synchronisation.

Throws:
Exception

testSynchroniseChanges_RemoveMaskingUserMembership

public void testSynchroniseChanges_RemoveMaskingUserMembership()
                                                        throws Exception
Throws:
Exception

testSynchroniseChanges_RemoveMaskedUserMembership

public void testSynchroniseChanges_RemoveMaskedUserMembership()
                                                       throws Exception
Throws:
Exception

testSynchroniseChanges_CreateUniqueRemoteGroupMembership

public void testSynchroniseChanges_CreateUniqueRemoteGroupMembership()
                                                              throws Exception
Throws:
Exception

testSynchroniseChanges_CreateMaskingGroupMembership

public void testSynchroniseChanges_CreateMaskingGroupMembership()
                                                         throws Exception
Throws:
Exception

testSynchroniseChanges_CreateMaskedGroupMembership

public void testSynchroniseChanges_CreateMaskedGroupMembership()
                                                        throws Exception
Throws:
Exception

testSynchroniseChanges_RemoveUniqueRemoteGroupMembership

public void testSynchroniseChanges_RemoveUniqueRemoteGroupMembership()
                                                              throws Exception
Throws:
Exception

testSynchroniseChanges_RemoveMaskedGroupMembership

public void testSynchroniseChanges_RemoveMaskedGroupMembership()
                                                        throws Exception
Throws:
Exception

testSynchroniseChanges_RemoveMaskingGroupMembership

public void testSynchroniseChanges_RemoveMaskingGroupMembership()
                                                         throws Exception
Throws:
Exception

testSynchroniseAll_ClientDirectoryConfigurationChanged

public void testSynchroniseAll_ClientDirectoryConfigurationChanged()
                                                            throws Exception
Throws:
Exception

testSynchroniseAll_ServerDirectoryConfigurationChanged

public void testSynchroniseAll_ServerDirectoryConfigurationChanged()
                                                            throws Exception
Throws:
Exception

testSynchroniseAll_ServerDirectoryDeleted

public void testSynchroniseAll_ServerDirectoryDeleted()
                                               throws Exception
Throws:
Exception

testSynchroniseAll_ServerXMLRestored

public void testSynchroniseAll_ServerXMLRestored()
                                          throws Exception
Throws:
Exception

testSynchroniseAll_ServerApplicationDirectoryAdded

public void testSynchroniseAll_ServerApplicationDirectoryAdded()
                                                        throws Exception
Throws:
Exception

testSynchroniseAll_ServerApplicationDirectoryRemoved

public void testSynchroniseAll_ServerApplicationDirectoryRemoved()
                                                          throws Exception
Throws:
Exception

testSynchroniseAll_ServerApplicationHasUncachedDirectory

public void testSynchroniseAll_ServerApplicationHasUncachedDirectory()


Copyright © 2013 Atlassian. All Rights Reserved.