public class RestCrowdClientTest extends CrowdAcceptanceTestCase
RestCrowdClient.CrowdWebTestCase.GenericPage, CrowdWebTestCase.TestContextADMIN_PW, ADMIN_USER, BATCHED_TEST_RULE, EXPIRED_MAINTENANCE_KEY, logger, testkitClient, testName, testWatcher, URL_HOME, USER_DETAILS_TABLE_IDBACKUP_RESOURCE, COOKIE_ABSENT, i18n, IMMUTABLE_USER_NAME, IMMUTABLE_USER_PW, JSESSIONID_COOKIE, log, REMEMBER_ME_COOKIE, restAdminClient, SSO_COOKIE, TEST_USER_DISPLAYNAME, TEST_USER_NAME, TEST_USER_PW, testedProduct, webDriverRules| Constructor and Description |
|---|
RestCrowdClientTest() |
_loginAsUser, _logout, assertAtLoginForm, assertAtLoginForm, assertIsLoggedIn, assertIsLoggedOut, assertMatchInTableBody, assertNoMatchInTableBody, assertUnescapedKeyNotPresent, assertUnescapedKeyPresent, assertUserInTable, assertUserInTable, assertUserNotInTable, disableIPValidation, doBackup, getCrowdApplicationPassword, getGroupTableContents, getInstanceProperties, getUserDetailsTableContents, getUsersCount, getUsersForDirectory, gotoAddApplication, gotoAddGroup, gotoAddPrincipal, gotoAdministrationPage, gotoBrowseApplications, gotoBrowseDirectories, gotoBrowseGroups, gotoBrowseGroups, gotoBrowsePrincipals, gotoBrowsePrincipals, gotoCreateDirectory, gotoCurrentApplicationSessions, gotoCurrentPrincipalSessions, gotoGeneral, gotoImporters, gotoLdapConnectionPool, gotoLicensing, gotoLoggingProfiling, gotoMailServer, gotoMailTemplate, gotoRemovePrincipal, gotoRestore, gotoSAMLConfig, gotoSessionConfig, gotoSystemInfo, gotoTrustedProxies, gotoViewApplication, gotoViewApplicationDirectories, gotoViewGroup, gotoViewPrincipal, intendToModifyLdapData, isLoggedIn, isLoggedInAfterRefresh, log, loginAdmin, loginWithRestAndRedirectToStartPage, loginWithRestEndpoint, loginWithRestEndpoint, namesOf, performRequestWithCookieExchange, restGet, restoreCrowdFromXMLWithoutReloggingIn, restPost, userWithDetails, userWithUsernameAndDisplayNameaddRequestHeader, assertButtonNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxSelected, assertElementIsDisabled, assertElementIsEnabled, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertFieldErrorPresentWithKey, assertInfoPresent, assertKeyInElement, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeyPresent, assertLinkNotPresent, assertLinkPresent, assertLinkPresentWithKey, assertMatchInTable, assertRadioOptionNotPresent, assertSelectedOptionEquals, assertSelectedOptionValueEquals, assertSelectOptionsEqual, assertSuccessPresent, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTitleEquals, assertTitleMatch, assertTitleNotEquals, assertWarningAndErrorNotPresent, assertWarningNotPresent, beginAt, checkCheckbox, checkCheckbox, clearCookies, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkInNavbar, clickLinkWithExactText, clickLinkWithKey, clickLinkWithText, clickRadioOption, closeBrowser, disableIpAddressValidation, equalToIgnoringWhiteSpace, findElementWithText, getBaseUrlIPv6, getElementById, getElementByXPath, getElementsByXPath, getElementTextById, getElementTextByXPath, getElementValueByID, getFinder, getMessage, getMessage, getName, getPageSource, getPageText, getPoller, getRestAssuredCookies, getTable, getTestContext, getText, getTextForList, gotoPage, isElementWithIdPresent, isTextPresent, scrapeTable, scrapeTable, scrapeTable, selectOption, selectOption, selectOptionBy, selectOptionByValue, seleniumCookieToRestAssuredCookie, setRadioButton, setResourceBundleName, setTextField, setWorkingForm, setWorkingForm, submit, submit, uncheckCheckbox, waitForElementById, waitUntilPageLoadassertAtRelativePath, assertAtURIContaining, assertAtURIEndingWith, assertAtUrl, assertHasError, assertHasErrorKey, bind, bind, clearAndInvalidateSsoCookieIfPresent, clearAndInvalidateSsoCookieOrFail, deleteAllCookies, deleteCookie, expectState, getBaseUrl, getBaseUrlWithoutPort, getCookie, getCookieOrThrow, getCurrentUrl, getDriver, getSsoCookieOrFail, getTestkitClient, hasCookie, hasSsoCookie, loginAsExpiredPasswordUser, loginAsNonAdmin, loginAsNonAdmin, loginAsSysAdmin, loginAsSysAdmin, loginAsSysAdminWithRememberMe, loginAsUser, loginExpectingFailure, loginImmutableUser, loginImmutableUser, loginTestUser, loginTestUser, logout, manage, navigateToAndBind, navigateToUrl, restoreBaseSetup, restoreCrowdFromXML, restoreCrowdFromXML, waitForUrl, waitUntilAsyncFinishedpublic void setUp()
throws Exception
setUp in class CrowdAcceptanceTestCaseExceptionpublic void getGroupNameMembershipsForGroup()
throws Exception
CrowdClient.getNamesOfParentGroupsForGroup(String, int, int) retrieves the correct parent
group names.Exceptionpublic void getGroupNameMembershipsForGroup_InvalidStartIndex()
throws Exception
CrowdClient.getNamesOfParentGroupsForGroup(String, int, int) with an invalid start index will
throw an OperationFailedException.Exceptionpublic void getGroupNameMembershipsForGroup_NonExistentGroup()
throws Exception
CrowdClient.getNamesOfParentGroupsForGroup(String, int, int) for a non-existent group returns an empty list.Exceptionpublic void getNestedUserNameMembersOfGroup()
throws Exception
CrowdClient.getNamesOfNestedUsersOfGroup(String, int, int) returns the correct user names
of nested members of a group.Exceptionpublic void getNestedUserNameMembersOfGroup_NonExistentGroup()
throws Exception
CrowdClient.getNamesOfNestedUsersOfGroup(String, int, int) returns an empty list for a
non-existent group.Exceptionpublic void getNestedGroupMembersOfGroup()
throws Exception
CrowdClient.getNestedChildGroupsOfGroup(String, int, int) returns the nested group members
of group.Exceptionpublic void getNestedGroupMembersOfGroup_NonExistentGroup()
throws Exception
CrowdClient.getNestedChildGroupsOfGroup(String, int, int) returns an empty list for a
non-existent group.Exceptionpublic void getNestedGroupNameMembersOfGroup()
throws Exception
CrowdClient.getNamesOfNestedChildGroupsOfGroup(String, int, int) returns the group names of
nested group members.Exceptionpublic void getNestedGroupNameMembersOfGroup_NonExistent()
throws Exception
CrowdClient.getNamesOfNestedChildGroupsOfGroup(String, int, int) returns an empty list for a
non-existent group.Exceptionpublic void getNestedGroupMembershipsForUser()
throws Exception
CrowdClient.getGroupsForNestedUser(String, int, int) returns the correct nested
group memberships for a user.Exceptionpublic void getNestedGroupMembershipsForUser_NonExistent()
throws Exception
CrowdClient.getGroupsForNestedUser(String, int, int) returns an empty list for a
non-existent username.Exceptionpublic void getNestedGroupNameMembershipsForUser()
throws Exception
CrowdClient.getNamesOfGroupsForNestedUser(String, int, int) returns the correct group
names for a nested user memberExceptionpublic void getNestedGroupNameMembershipsForUser_NonExistent()
throws Exception
CrowdClient.getNamesOfGroupsForNestedUser(String, int, int) returns an empty list
for a non-existent username.Exceptionpublic void getNestedGroupMembershipsForGroup()
throws Exception
CrowdClient.getParentGroupsForNestedGroup(String, int, int) returns the correct nested
group memberships for a group.Exceptionpublic void getNestedGroupMembershipsForGroup_NonExistent()
throws Exception
CrowdClient.getParentGroupsForNestedGroup(String, int, int) returns an empty list for a
non-existent group.Exceptionpublic void getNestedGroupNameMembershipsForGroup()
throws Exception
CrowdClient.getNamesOfParentGroupsForNestedGroup(String, int, int) returns the correct nested
group name memberships of a group.Exceptionpublic void getNestedGroupNameMembershipsForGroup_NonExistent()
throws Exception
CrowdClient.getNamesOfParentGroupsForNestedGroup(String, int, int) returns an empty list for
a non-existent group.Exceptionpublic void addUserWithEncryptedPassword()
throws Exception
Exceptionpublic void updateUserCredentialToNone()
throws Exception
Exceptionpublic void updateUserCredentialPasswordDoesNotMatchDirectoryComplexityRequirement()
throws Exception
Exceptionpublic void connectToInvalidRestService()
throws Exception
RestCrowdClient throws an OperationFailedException if the RestCrowdClient is not
communicating with a valid Crowd REST service.Exceptionpublic void connectToRestService_WrongPassword()
throws Exception
RestCrowdClient throws an InvalidAuthenticationException if the application password
is invalid.Exceptionpublic void getMemberships()
throws Exception
RestCrowdClient.getMemberships() returns successfully. The content of the response
is tested by GroupsResourceTest#testGetMembershipsReturnsExactlyExpectedMemberships in crowd-rest-test.Exceptionpublic void searchUsersWithAttributes()
throws Exception
Exceptionpublic void searchGroupsWithAttributes()
throws Exception
Exceptionpublic void mailUsernamesFailsWithUnknownAddress()
throws Exception
Exceptionpublic void updateGroupWithAttributes()
throws Exception
Exceptionpublic void SSOUserWithDefaultTokenDuration()
throws Exception
Exceptionpublic void SSOUserWithZeroLivedToken()
throws Exception
Exceptionpublic void invalidateAllSSOTokensForUser()
throws Exception
Exceptionpublic void invalidateAllOtherSSOTokensForUser()
throws Exception
Exceptionpublic void findUserFromValidSSOToken()
throws Exception
Exceptionpublic void findUserFromInvalidSSOToken()
throws Exception
Exceptionpublic void findUserFromNonExistentSSOToken()
throws Exception
Exceptionpublic void unregisterNonExistingWebhook()
throws Exception
Exceptionpublic void addUserToGroupWhenMembershipAlreadyExists()
throws Exception
ExceptionCopyright © 2023 Atlassian. All rights reserved.