public class UsersResourceTest extends RestCrowdServiceAcceptanceTestCase
Note that this test class is reused in JIRA via inheritance. Please be mindful of that when making changes to this class.
ADMIN_PASSWORD, ADMIN_USERNAME, APPLICATION_NAME, APPLICATION_PASSWORD, ATTRIBUTES_RESOURCE, AUTHENTICATION_RESOURCE, EEEEP_PASSWORD, EEEEP_USERNAME, EVENTS_RESOURCE, GROUP_BADGERS, GROUP_BADGERS_DESCRIPTION, GROUP_CROWD_ADMINS, GROUP_CROWD_TESTERS, GROUP_CROWD_USERS, GROUPS_RESOURCE, MT, NON_ADMIN_USER_NAME, NON_ADMIN_USER_PASSWORD, NON_CROWD_USER_PASSWORD, NON_CROWD_USER_USERNAME, NON_EXISTENT_GROUP, NON_EXISTENT_USER, PENNY_USERNAME, REST_SERVICE_NAME, restServer, SECOND_ADMIN_PASSWORD, SECOND_ADMIN_USERNAME, SESSION_RESOURCE, USERS_RESOURCE, WEBHOOKS_RESOURCE
Constructor and Description |
---|
UsersResourceTest(String name)
Constructs a test case with the given name.
|
UsersResourceTest(String name,
RestServer restServer)
Constructs a test case with the given name, using the given RestServer.
|
authenticateUser, authenticateUser, deactivateUser, getBaseUriBuilder, getBaseUriBuilder, getBaseUriBuilder, getRootWebResource, getServerUriBuilder, getWebResource, getWebResource, requestEvents, requestEventToken, setRestServer, setUp, tearDown
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, runBare, runTest, setName, toString
public UsersResourceTest(String name)
name
- the test namepublic UsersResourceTest(String name, RestServer restServer)
name
- the test namerestServer
- the RestServerpublic void testGetUser()
public void testGetUserByKey()
public void testGetUser_InvalidApplicationCredentials()
public void testGetUser_NonExistent()
public void testGetUserWithAttributes()
public void testGetUserWithAttributesByKey()
public void testAddUserWithAttributes() throws Exception
Exception
public void testAddUser_NoPasswordProvided()
public void testAddUser_AtlassianSecurityPasswordProvided()
public void testAddUser_UserAlreadyExists() throws Exception
Exception
public void testUpdateUser()
public void testUpdateUser_WrongUserUri()
public void testUpdateUserWithDifferentCaseInUrlIsAccepted()
public void testUpdateUserWithDifferentCaseInEntityIsAccepted()
public void testUpdateUserWithDifferentEntityNameShouldNotRenameUser()
public void testRenameUserShouldRenameUserWhenProvidedWithOldUsername()
public void testRenameUserShouldRenameUserWhenProvidedWithOldUsernameAndNewNameOfDifferentCase()
public void testRenameUserShouldFailWhenUserWithProvidedUsernameDoesNotExist()
public void testRenameUserShouldFailWhenNewUsernameIsAlreadyInUse()
public void testUpdateUserPassword()
public void testDeleteUserPasswordRejectsOldPassword()
public void testStoreUserAttributes()
public void testDeleteUserAttribute()
public void testDeleteNonExistentUserAttributeSucceeds()
public void testDeleteUser()
public void testExpireAllPasswords()
public void testAddUserToGroup()
public void testAddUserToGroup_NonExistentGroup()
public void testAddUserToGroup_NonExistentUser()
public void testAddUserToGroup_MembershipAlreadyExists()
public void testRemoveUserFromGroup()
public void testGetNestedGroup()
public void testGetNestedGroups()
public void testGetNestedGroupReturns404WhenGroupDoesNotExist()
public void testGetNestedGroupReturns404WhenUserDoesNotExist()
public void testGetNestedGroupReturns404WhenUserAndGroupDoNotExist()
public void testGetNestedGroupsReturns404WhenUserDoesNotExist()
public void testGetDirectGroup()
public void testGetDirectGroups()
public void testGetDirectGroupReturns404WhenGroupDoesNotExist()
public void testGetDirectGroupReturns404WhenUserDoesNotExist()
public void testGetDirectGroupReturns404WhenUserAndGroupDoNotExist()
public void testGetDirectGroupsReturns404WhenUserDoesNotExist()
public void testGetDirectGroupsWithAttributes()
public void testRequestForAvatarForUnspecifiedUserIsNotFound()
public void testUserLookupByUnknownOpenIdIsNotFound()
public void testUserLookupByV1OpenIdIsNotFound()
public void testUserLookupByV2OpenIdIsFound()
public void testUserLookupByV2OpenIdWithUnknownUserIsNotFound()
Copyright © 2020 Atlassian. All rights reserved.