public class RestCrowdClientTest extends CrowdAcceptanceTestCase
RestCrowdClient
.CrowdWebTestCase.GenericPage, CrowdWebTestCase.TestContext
ADMIN_PW, ADMIN_USER, BATCHED_TEST_RULE, EXPIRED_MAINTENANCE_KEY, logger, testkitClient, testName, testWatcher, URL_HOME, USER_DETAILS_TABLE_ID
BACKUP_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, userWithUsernameAndDisplayName
addRequestHeader, 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, waitUntilPageLoad
assertAtRelativePath, assertAtURIContaining, assertAtURIEndingWith, assertAtUrl, assertHasError, assertHasErrorKey, bind, bind, clearAndInvalidateSsoCookieIfPresent, clearAndInvalidateSsoCookieOrFail, deleteAllCookies, deleteCookie, getBaseUrl, getBaseUrlWithoutPort, getCookie, getCookieOrThrow, getCurrentUrl, getDriver, getSsoCookieOrFail, getTestkitClient, hasCookie, hasSsoCookie, intendToModifyData, loginAsExpiredPasswordUser, loginAsNonAdmin, loginAsNonAdmin, loginAsSysAdmin, loginAsSysAdmin, loginAsSysAdminWithRememberMe, loginAsUser, loginExpectingFailure, loginImmutableUser, loginImmutableUser, loginTestUser, loginTestUser, logout, manage, navigateToAndBind, navigateToUrl, restoreBaseSetup, restoreCrowdFromXML, waitForUrl, waitUntilAsyncFinished
public void setUp() throws Exception
setUp
in class CrowdAcceptanceTestCase
Exception
public void getGroupNameMembershipsForGroup() throws Exception
CrowdClient.getNamesOfParentGroupsForGroup(String, int, int)
retrieves the correct parent
group names.Exception
public void getGroupNameMembershipsForGroup_InvalidStartIndex() throws Exception
CrowdClient.getNamesOfParentGroupsForGroup(String, int, int)
with an invalid start index will
throw an OperationFailedException.Exception
public void getGroupNameMembershipsForGroup_NonExistentGroup() throws Exception
CrowdClient.getNamesOfParentGroupsForGroup(String, int, int)
for a non-existent group returns an empty list.Exception
public void getNestedUserNameMembersOfGroup() throws Exception
CrowdClient.getNamesOfNestedUsersOfGroup(String, int, int)
returns the correct user names
of nested members of a group.Exception
public void getNestedUserNameMembersOfGroup_NonExistentGroup() throws Exception
CrowdClient.getNamesOfNestedUsersOfGroup(String, int, int)
returns an empty list for a
non-existent group.Exception
public void getNestedGroupMembersOfGroup() throws Exception
CrowdClient.getNestedChildGroupsOfGroup(String, int, int)
returns the nested group members
of group.Exception
public void getNestedGroupMembersOfGroup_NonExistentGroup() throws Exception
CrowdClient.getNestedChildGroupsOfGroup(String, int, int)
returns an empty list for a
non-existent group.Exception
public void getNestedGroupNameMembersOfGroup() throws Exception
CrowdClient.getNamesOfNestedChildGroupsOfGroup(String, int, int)
returns the group names of
nested group members.Exception
public void getNestedGroupNameMembersOfGroup_NonExistent() throws Exception
CrowdClient.getNamesOfNestedChildGroupsOfGroup(String, int, int)
returns an empty list for a
non-existent group.Exception
public void getNestedGroupMembershipsForUser() throws Exception
CrowdClient.getGroupsForNestedUser(String, int, int)
returns the correct nested
group memberships for a user.Exception
public void getNestedGroupMembershipsForUser_NonExistent() throws Exception
CrowdClient.getGroupsForNestedUser(String, int, int)
returns an empty list for a
non-existent username.Exception
public void getNestedGroupNameMembershipsForUser() throws Exception
CrowdClient.getNamesOfGroupsForNestedUser(String, int, int)
returns the correct group
names for a nested user memberException
public void getNestedGroupNameMembershipsForUser_NonExistent() throws Exception
CrowdClient.getNamesOfGroupsForNestedUser(String, int, int)
returns an empty list
for a non-existent username.Exception
public void getNestedGroupMembershipsForGroup() throws Exception
CrowdClient.getParentGroupsForNestedGroup(String, int, int)
returns the correct nested
group memberships for a group.Exception
public void getNestedGroupMembershipsForGroup_NonExistent() throws Exception
CrowdClient.getParentGroupsForNestedGroup(String, int, int)
returns an empty list for a
non-existent group.Exception
public void getNestedGroupNameMembershipsForGroup() throws Exception
CrowdClient.getNamesOfParentGroupsForNestedGroup(String, int, int)
returns the correct nested
group name memberships of a group.Exception
public void getNestedGroupNameMembershipsForGroup_NonExistent() throws Exception
CrowdClient.getNamesOfParentGroupsForNestedGroup(String, int, int)
returns an empty list for
a non-existent group.Exception
public void addUserWithEncryptedPassword() throws Exception
Exception
public void updateUserCredentialToNone() throws Exception
Exception
public void updateUserCredentialPasswordDoesNotMatchDirectoryComplexityRequirement() throws Exception
Exception
public void connectToInvalidRestService() throws Exception
RestCrowdClient
throws an OperationFailedException if the RestCrowdClient is not
communicating with a valid Crowd REST service.Exception
public void connectToRestService_WrongPassword() throws Exception
RestCrowdClient
throws an InvalidAuthenticationException if the application password
is invalid.Exception
public void getMemberships() throws Exception
RestCrowdClient.getMemberships()
returns successfully. The content of the response
is tested by GroupsResourceTest#testGetMembershipsReturnsExactlyExpectedMemberships
in crowd-rest-test.Exception
public void searchUsersWithAttributes() throws Exception
Exception
public void searchGroupsWithAttributes() throws Exception
Exception
public void mailUsernamesFailsWithUnknownAddress() throws Exception
Exception
public void updateGroupWithAttributes() throws Exception
Exception
public void SSOUserWithDefaultTokenDuration() throws Exception
Exception
public void SSOUserWithZeroLivedToken() throws Exception
Exception
public void invalidateAllSSOTokensForUser() throws Exception
Exception
public void invalidateAllOtherSSOTokensForUser() throws Exception
Exception
public void findUserFromValidSSOToken() throws Exception
Exception
public void findUserFromInvalidSSOToken() throws Exception
Exception
public void findUserFromNonExistentSSOToken() throws Exception
Exception
public void unregisterNonExistingWebhook() throws Exception
Exception
public void addUserToGroupWhenMembershipAlreadyExists() throws Exception
Exception
Copyright © 2021 Atlassian. All rights reserved.