Class UserAdminResourceAcceptanceTest

java.lang.Object
com.atlassian.crowd.acceptance.tests.rest.service.admin.UserAdminResourceAcceptanceTest

public class UserAdminResourceAcceptanceTest extends Object
  • Field Details

    • fixture

      public RestTestFixture fixture
    • runConditionallyRule

      public com.atlassian.testutils.rules.RunConditionallyRule runConditionallyRule
  • Constructor Details

    • UserAdminResourceAcceptanceTest

      public UserAdminResourceAcceptanceTest()
  • Method Details

    • shouldAddUserToGroupsAndRemoveFromGroupsAsSysAdmin

      public void shouldAddUserToGroupsAndRemoveFromGroupsAsSysAdmin() throws IOException
      Throws:
      IOException
    • shouldAddUserToGroupsAndRemoveFromGroups

      public void shouldAddUserToGroupsAndRemoveFromGroups() throws IOException
      Throws:
      IOException
    • shouldNotAddUserToGroupsWhenAnonymousRequest

      public void shouldNotAddUserToGroupsWhenAnonymousRequest()
    • shouldReturnLicenseErrorWhileAddingUserToGroupWhenRegularUser

      public void shouldReturnLicenseErrorWhileAddingUserToGroupWhenRegularUser()
    • shouldReturnNotFoundWhenAddingNonExistentUserToGroups

      public void shouldReturnNotFoundWhenAddingNonExistentUserToGroups()
    • shouldReturnBadRequestWhenAddingUserFromNonExistentDirectoryToGroups

      public void shouldReturnBadRequestWhenAddingUserFromNonExistentDirectoryToGroups()
    • shouldReturnLicenseErrorWhileRemovingUserFromGroupWhenRegularUser

      public void shouldReturnLicenseErrorWhileRemovingUserFromGroupWhenRegularUser()
    • shouldNotRemoveUserToGroupsWhenAnonymousRequest

      public void shouldNotRemoveUserToGroupsWhenAnonymousRequest()
    • shouldReturnNotFoundWhenRemovingNonExistentUserFromGroups

      public void shouldReturnNotFoundWhenRemovingNonExistentUserFromGroups()
    • shouldReturnBadRequestWhenRemovingUserFromNonExistentDirectoryFromGroups

      public void shouldReturnBadRequestWhenRemovingUserFromNonExistentDirectoryFromGroups()
    • givenAnonymousUserWhenSearchUsersThenUnauthorizedError

      public void givenAnonymousUserWhenSearchUsersThenUnauthorizedError()
    • shouldThrowErrorWhenSearchUsersAsRegularUser

      public void shouldThrowErrorWhenSearchUsersAsRegularUser()
    • shouldReturnResultsOnlyFromAdministeredDirectoriesWhenSearchUsers

      public void shouldReturnResultsOnlyFromAdministeredDirectoriesWhenSearchUsers()
    • shouldThrowErrorWhenSearchUsersFromNotAdministeredDirectories

      public void shouldThrowErrorWhenSearchUsersFromNotAdministeredDirectories()
    • givenAdminUserWhenSearchUsersThenReturnResults

      public void givenAdminUserWhenSearchUsersThenReturnResults()
    • shouldReturnEmptyAvatarUrlWithinRestPageResponseIfWebAvatarsIsDisabled

      public void shouldReturnEmptyAvatarUrlWithinRestPageResponseIfWebAvatarsIsDisabled()
    • shouldReturnUsersGravatarUrlWithinRestPageResponseIfWebAvatarsIsEnabled

      public void shouldReturnUsersGravatarUrlWithinRestPageResponseIfWebAvatarsIsEnabled()
    • givenDirectoryRestrictionWhenSearchUsersThenResultsFromRequestedDirOnly

      public void givenDirectoryRestrictionWhenSearchUsersThenResultsFromRequestedDirOnly()
    • givenStatusRestrictionWhenSearchUsersThenResultsWithGivenStatusOnly

      public void givenStatusRestrictionWhenSearchUsersThenResultsWithGivenStatusOnly()
    • whenDuplicatedUsernamesSearchUsersShouldOrderByDirectoryName

      public void whenDuplicatedUsernamesSearchUsersShouldOrderByDirectoryName()
    • givenUserNameRestrictionWhenSearchUsersThenResultsWithMatchingSubstringsOnlyReturned

      public void givenUserNameRestrictionWhenSearchUsersThenResultsWithMatchingSubstringsOnlyReturned()
    • givenPageRestrictionWhenSearchUsersThenCorrectSubresultsAreReturned

      public void givenPageRestrictionWhenSearchUsersThenCorrectSubresultsAreReturned()
    • givenMutlipleRestrictionsWhenSerachUsersThenOnlyMatchingAreReturned

      public void givenMutlipleRestrictionsWhenSerachUsersThenOnlyMatchingAreReturned()