public class SearchResourceTest extends RestCrowdServiceAcceptanceTestCase
ADMIN_PASSWORD, ADMIN_USERNAME, 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, USERNAME_PARAM, USERS_RESOURCE, WEBHOOKS_RESOURCE
Constructor and Description |
---|
SearchResourceTest(String name)
Constructs a test case with the given name.
|
SearchResourceTest(String name,
RestServer restServer)
Constructs a test case with the given name, using the given RestServer.
|
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
getAllGroupnames() |
void |
testGetGroupNames_ActiveRestriction()
Tests getting all group names with active and inactive groups.
|
void |
testGetGroupNames_Restricted()
Tests getting a restricted number of group names (specifying a max result parameter).
|
void |
testGetGroupNames_StartIndex()
Tests getting all group names from an offset value.
|
void |
testGetGroupNames()
Tests getting all the group names
|
void |
testGetGroups()
Tests getting all groups.
|
void |
testGetGroupsCqlRestrictionOnCustomAttributeReturnsGroup() |
void |
testGetGroupsWithExpandAttributesRetrievesAttributes() |
void |
testGetGroupsWithExpandAttributesReturnsGroups() |
void |
testGetUnknownEntityType()
Tests that getting an unknown entity type results in a 400 (Bad Request) returned.
|
void |
testGetUser_StartIndex()
Tests getting all users from an offset value.
|
void |
testGetUserNames_Aliases()
Tests that users with matching aliases are returned in lower case.
|
void |
testGetUserNames_AliasesAll()
Tests that all users are matched and returned in lower case.
|
void |
testGetUserNames_AliasesIgnoreUsernameWhenAliasExists()
Tests that user with username 'admin' is not returned, because that user has an alias.
|
void |
testGetUserNames_EmailRestriction()
Tests getting all user names with the specified email.
|
void |
testGetUserNames_MaxResult()
Tests getting user names with a max-result parameter.
|
void |
testGetUserNames_NegativeStartIndex()
Tests getting all user names from a negative offset value.
|
void |
testGetUserNames_StartIndex()
Tests getting all user names from an offset value.
|
void |
testGetUserNames()
Tests getting all available user names.
|
void |
testGetUsers_UserRestriction()
Tests getting users with user name restriction.
|
void |
testGetUsers()
Tests getting all users.
|
void |
testGetUsersCqlRestrictionOnCustomAttributeReturnsUser() |
void |
testGetUsersCqlRestrictionOnCustomAttributeWithNullMatchReturnsUsersWithoutTheCustomAttribute() |
void |
testGetUsersRestrictionOnCustomAttributeReturnsUser() |
void |
testGetUsersRestrictionOnUnusedCustomAttributeReturnsNoUsers() |
void |
testGetUsersWithExpandAttributesRetrievesAttributes() |
void |
testGetUserWithExpandAttributesReturnsUsers() |
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 SearchResourceTest(String name)
name
- the test namepublic SearchResourceTest(String name, RestServer restServer)
name
- the test namerestServer
- the RestServerpublic void testGetUnknownEntityType() throws Exception
Exception
public void testGetUserNames()
public void testGetUserNames_MaxResult()
public void testGetUserNames_StartIndex()
public void testGetUserNames_Aliases()
public void testGetUserNames_AliasesIgnoreUsernameWhenAliasExists()
public void testGetUserNames_AliasesAll()
public void testGetUserNames_NegativeStartIndex()
public void testGetUserNames_EmailRestriction()
public void testGetUsers()
public void testGetUsers_UserRestriction()
public void testGetUsersRestrictionOnUnusedCustomAttributeReturnsNoUsers()
public void testGetUsersRestrictionOnCustomAttributeReturnsUser()
public void testGetUsersCqlRestrictionOnCustomAttributeReturnsUser()
public void testGetUsersCqlRestrictionOnCustomAttributeWithNullMatchReturnsUsersWithoutTheCustomAttribute()
public void testGetUser_StartIndex()
public void testGetUserWithExpandAttributesReturnsUsers()
public void testGetUsersWithExpandAttributesRetrievesAttributes()
public void testGetGroupNames()
public void testGetGroupNames_Restricted()
public void testGetGroupNames_StartIndex()
public void testGetGroupNames_ActiveRestriction()
public void testGetGroupsCqlRestrictionOnCustomAttributeReturnsGroup()
public void testGetGroups()
public void testGetGroupsWithExpandAttributesReturnsGroups()
public void testGetGroupsWithExpandAttributesRetrievesAttributes()
Copyright © 2019 Atlassian. All rights reserved.