public class PreventAdminFromRevokingAdminRightsFromThemselvesTest extends GroupAndUserPickerBaseTest
ATLASSIAN_DIRECTORY_ID, CROWD_ADMINISTRATORS_GROUP, CROWD_TESTERS, CROWD_TESTERS_GROUP, NATURAL_BY_ALIAS, USER_ALIAS_BY_INDEX_POPULATOR
BACKUP_RESOURCE, BATCHED_TEST_RULE, 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, testkitClient, webDriverRules
Constructor and Description |
---|
PreventAdminFromRevokingAdminRightsFromThemselvesTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
shouldAllowRemoveNonLastAdminMembership() |
void |
shouldAllowToRemoveSomeOtherUserAdminRights() |
void |
shouldNotAllowToRemoveFromGroupIfGroupIsNested() |
void |
shouldNotRemoveAnyMembershipIfAllAreAdminGroups() |
void |
shouldPreventAdminFromRemovingTheirLastAdminMembership() |
void |
shouldRemoveNonAdminGroupsFromUserButShouldNotRemoveAdminGroup() |
void |
shouldRemoveNormalGroupsWithAdminGroupsWhenNotAllAdminGroupsAreSelected() |
expectedUsersForEmptySearch, genericGroup, genericGroups, genericUser, genericUsers, genericUsersRange, goToUsersGroupMembershipsPage, superUser
assertAtRelativePath, assertAtURIContaining, assertAtURIEndingWith, assertAtUrl, assertHasError, assertHasErrorKey, bind, bind, clearAndInvalidateSsoCookieIfPresent, clearAndInvalidateSsoCookieOrFail, deleteAllCookies, deleteCookie, getBaseUrl, getBaseUrlWithoutPort, getCookie, getCookieOrThrow, getCurrentUrl, getDriver, getSsoCookieOrFail, getTestkitClient, hasCookie, hasSsoCookie, intendToModifyData, intendToModifyLdapData, loginAsExpiredPasswordUser, loginAsNonAdmin, loginAsNonAdmin, loginAsSysAdmin, loginAsSysAdmin, loginAsSysAdminWithRememberMe, loginAsUser, loginExpectingFailure, loginImmutableUser, loginImmutableUser, loginTestUser, loginTestUser, logout, manage, navigateToAndBind, navigateToUrl, restoreBaseSetup, restoreCrowdFromXML, waitForUrl, waitUntilAsyncFinished
public PreventAdminFromRevokingAdminRightsFromThemselvesTest()
public void setUp() throws Exception
setUp
in class CrowdWebDriverTest
Exception
public void shouldPreventAdminFromRemovingTheirLastAdminMembership()
public void shouldAllowRemoveNonLastAdminMembership()
public void shouldAllowToRemoveSomeOtherUserAdminRights()
public void shouldRemoveNonAdminGroupsFromUserButShouldNotRemoveAdminGroup()
public void shouldNotRemoveAnyMembershipIfAllAreAdminGroups()
public void shouldNotAllowToRemoveFromGroupIfGroupIsNested()
public void shouldRemoveNormalGroupsWithAdminGroupsWhenNotAllAdminGroupsAreSelected()
Copyright © 2021 Atlassian. All rights reserved.