public class TestCrowdUsersResource extends com.atlassian.crowd.acceptance.tests.rest.service.UsersResourceTest implements EnvironmentAware
APPLICATION_NAME, APPLICATION_PASSWORD, ATTRIBUTES_RESOURCE, AUTHENTICATION_RESOURCE, EVENTS_RESOURCE, GROUP1, GROUP2, GROUP3, GROUP4, GROUPS_RESOURCE, MT, NON_ADMIN_USER_NAME, NON_ADMIN_USER_PASSWORD, NON_EXISTENT_GROUP, NON_EXISTENT_USER, REST_SERVICE_NAME, SESSION_RESOURCE, USERNAME1, USERNAME1_PASSWORD, USERNAME2, USERNAME2_PASSWORD, USERNAME3, 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, 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, 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-2021 Atlassian. All Rights Reserved.