public class TestCrowdUsersResource extends com.atlassian.crowd.acceptance.tests.rest.service.UsersResourceTest implements EnvironmentAware
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 |
---|
TestCrowdUsersResource(String name)
Constructs a test case with the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
setEnvironmentData(JIRAEnvironmentData environmentData) |
void |
testGetDirectGroups() |
void |
testGetDirectGroupsWithAttributes() |
void |
testGetNestedGroups() |
void |
testGetUserWithAttributes() |
void |
testGetUserWithAttributesByKey()
Below code is copied from base class and adapted to run against Jira.
|
void |
testUserLookupByV1OpenIdIsNotFound() |
void |
testUserLookupByV2OpenIdIsFound() |
void |
testUserLookupByV2OpenIdWithUnknownUserIsNotFound() |
testAddUser_AtlassianSecurityPasswordProvided, testAddUser_NoPasswordProvided, testAddUser_UserAlreadyExists, testAddUser, testAddUserToGroup_MembershipAlreadyExists, testAddUserToGroup_NonExistentGroup, testAddUserToGroup_NonExistentUser, testAddUserToGroup, testAddUserWithAttributes, testDeleteNonExistentUserAttributeSucceeds, testDeleteUser, testDeleteUserAttribute, testDeleteUserPasswordRejectsOldPassword, testExpireAllPasswords, testGetDirectGroup, testGetDirectGroupReturns404WhenGroupDoesNotExist, testGetDirectGroupReturns404WhenUserAndGroupDoNotExist, testGetDirectGroupReturns404WhenUserDoesNotExist, testGetDirectGroupsReturns404WhenUserDoesNotExist, testGetNestedGroup, testGetNestedGroupReturns404WhenGroupDoesNotExist, testGetNestedGroupReturns404WhenUserAndGroupDoNotExist, testGetNestedGroupReturns404WhenUserDoesNotExist, testGetNestedGroupsReturns404WhenUserDoesNotExist, testGetUser_InvalidApplicationCredentials, testGetUser_NonExistent, testGetUser, testGetUserByKey, testRemoveUserFromGroup, testRenameUserShouldFailWhenNewUsernameIsAlreadyInUse, testRenameUserShouldFailWhenUserWithProvidedUsernameDoesNotExist, testRenameUserShouldRenameUserWhenProvidedWithOldUsername, testRenameUserShouldRenameUserWhenProvidedWithOldUsernameAndNewNameOfDifferentCase, testRequestForAvatarForUnspecifiedUserIsNotFound, testStoreUserAttributes, testUpdateUser_WrongUserUri, testUpdateUser, testUpdateUserPassword, testUpdateUserWithDifferentCaseInEntityIsAccepted, testUpdateUserWithDifferentCaseInUrlIsAccepted, testUpdateUserWithDifferentEntityNameShouldNotRenameUser, testUserLookupByUnknownOpenIdIsNotFound
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 TestCrowdUsersResource(String name)
name
- the test namepublic void setEnvironmentData(JIRAEnvironmentData environmentData)
setEnvironmentData
in interface EnvironmentAware
public void testGetUserWithAttributes()
testGetUserWithAttributes
in class com.atlassian.crowd.acceptance.tests.rest.service.UsersResourceTest
public void testGetNestedGroups()
testGetNestedGroups
in class com.atlassian.crowd.acceptance.tests.rest.service.UsersResourceTest
public void testGetDirectGroups()
testGetDirectGroups
in class com.atlassian.crowd.acceptance.tests.rest.service.UsersResourceTest
public void testUserLookupByV2OpenIdIsFound()
testUserLookupByV2OpenIdIsFound
in class com.atlassian.crowd.acceptance.tests.rest.service.UsersResourceTest
public void testUserLookupByV2OpenIdWithUnknownUserIsNotFound()
testUserLookupByV2OpenIdWithUnknownUserIsNotFound
in class com.atlassian.crowd.acceptance.tests.rest.service.UsersResourceTest
public void testUserLookupByV1OpenIdIsNotFound()
testUserLookupByV1OpenIdIsNotFound
in class com.atlassian.crowd.acceptance.tests.rest.service.UsersResourceTest
public void testGetDirectGroupsWithAttributes()
testGetDirectGroupsWithAttributes
in class com.atlassian.crowd.acceptance.tests.rest.service.UsersResourceTest
public void testGetUserWithAttributesByKey()
CrowdEmbeddedServer.xmlBackup
.testGetUserWithAttributesByKey
in class com.atlassian.crowd.acceptance.tests.rest.service.UsersResourceTest
Copyright © 2002-2023 Atlassian. All Rights Reserved.