public class DirectoryResourceTest extends RestCrowdServiceAcceptanceTestCase
Modifier and Type | Field and Description |
---|---|
protected static String |
REST_SERVICE_NAME |
protected static String |
SETTINGS_RESOURCE |
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, restServer, SECOND_ADMIN_PASSWORD, SECOND_ADMIN_USERNAME, SESSION_RESOURCE, USERNAME_PARAM, USERS_RESOURCE, WEBHOOKS_RESOURCE
Constructor and Description |
---|
DirectoryResourceTest(String name) |
DirectoryResourceTest(String name,
RestServer restServer) |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.UriBuilder |
getBaseUriBuilder()
Returns the base URI of the REST service.
|
protected com.sun.jersey.api.client.WebResource |
getRootWebResource(String userName,
String password)
Returns the "root" WebResource.
|
void |
testAdminCanUseCrowdResource() |
void |
testAdminCanUseLdapResource() |
void |
testAdminCanUseTestSearchResource() |
void |
testAnonymousCannotUseCrowdResource() |
void |
testAnonymousCannotUseLdapResource() |
void |
testAnonymousCannotUseTestSearchResource() |
void |
testNonAdminCannotUseCrowdResource() |
void |
testNonAdminCannotUseLdapResource() |
void |
testNonAdminCannotUseTestSearchResource() |
void |
testValidationShouldFailOnInvalidDirectoryAttributesForAzureAd() |
void |
testValidationShouldFailOnInvalidDirectoryAttributesForCrowd() |
authenticateUser, authenticateUser, deactivateUser, getBaseUriBuilder, getBaseUriBuilder, 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
protected static final String REST_SERVICE_NAME
protected static final String SETTINGS_RESOURCE
public DirectoryResourceTest(String name)
public DirectoryResourceTest(String name, RestServer restServer)
protected javax.ws.rs.core.UriBuilder getBaseUriBuilder()
RestCrowdServiceAcceptanceTestCase
getBaseUriBuilder
in class RestCrowdServiceAcceptanceTestCase
protected com.sun.jersey.api.client.WebResource getRootWebResource(String userName, String password)
RestCrowdServiceAcceptanceTestCase
getRootWebResource
in class RestCrowdServiceAcceptanceTestCase
userName
- name of the applicationpassword
- password of the applicationpublic void testValidationShouldFailOnInvalidDirectoryAttributesForCrowd()
public void testValidationShouldFailOnInvalidDirectoryAttributesForAzureAd()
public void testAnonymousCannotUseCrowdResource()
public void testNonAdminCannotUseCrowdResource()
public void testAdminCanUseCrowdResource()
public void testAnonymousCannotUseLdapResource()
public void testNonAdminCannotUseLdapResource()
public void testAdminCanUseLdapResource()
public void testAnonymousCannotUseTestSearchResource()
public void testNonAdminCannotUseTestSearchResource()
public void testAdminCanUseTestSearchResource()
Copyright © 2021 Atlassian. All rights reserved.