Class DirectoryResourceTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
com.atlassian.crowd.acceptance.tests.rest.service.DirectoryResourceTest
- All Implemented Interfaces:
junit.framework.Test
-
Field Summary
Fields inherited from class com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
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 Summary
ConstructorDescriptionDirectoryResourceTest
(String name) DirectoryResourceTest
(String name, RestServer restServer) -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.ws.rs.core.UriBuilder
Returns the base URI of the REST service.protected javax.ws.rs.client.WebTarget
getRootWebTarget
(String userName, String password) Returns the "root" WebTarget.void
void
void
void
void
void
void
void
void
void
void
Methods inherited from class com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
authenticateUser, authenticateUser, deactivateUser, getBaseUriBuilder, getBaseUriBuilder, getServerUriBuilder, getWebTarget, getWebTarget, requestEvents, requestEventToken, setRestServer, setUp, tearDown
Methods inherited from class junit.framework.TestCase
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
-
Field Details
-
REST_SERVICE_NAME
- See Also:
-
SETTINGS_RESOURCE
- See Also:
-
-
Constructor Details
-
DirectoryResourceTest
-
DirectoryResourceTest
-
-
Method Details
-
getBaseUriBuilder
protected javax.ws.rs.core.UriBuilder getBaseUriBuilder()Description copied from class:RestCrowdServiceAcceptanceTestCase
Returns the base URI of the REST service.- Overrides:
getBaseUriBuilder
in classRestCrowdServiceAcceptanceTestCase
- Returns:
- UriBuilder
-
getRootWebTarget
Description copied from class:RestCrowdServiceAcceptanceTestCase
Returns the "root" WebTarget. This is the resource that's at the / of the crowd-rest-plugin plugin namespace.- Overrides:
getRootWebTarget
in classRestCrowdServiceAcceptanceTestCase
- Parameters:
userName
- name of the applicationpassword
- password of the application- Returns:
- root WebTarget
-
testValidationShouldFailOnInvalidDirectoryAttributesForCrowd
public void testValidationShouldFailOnInvalidDirectoryAttributesForCrowd() -
testValidationShouldFailOnInvalidDirectoryAttributesForAzureAd
public void testValidationShouldFailOnInvalidDirectoryAttributesForAzureAd() -
testAnonymousCannotUseCrowdResource
public void testAnonymousCannotUseCrowdResource() -
testNonAdminCannotUseCrowdResource
public void testNonAdminCannotUseCrowdResource() -
testAdminCanUseCrowdResource
public void testAdminCanUseCrowdResource() -
testAnonymousCannotUseLdapResource
public void testAnonymousCannotUseLdapResource() -
testNonAdminCannotUseLdapResource
public void testNonAdminCannotUseLdapResource() -
testAdminCanUseLdapResource
public void testAdminCanUseLdapResource() -
testAnonymousCannotUseTestSearchResource
public void testAnonymousCannotUseTestSearchResource() -
testNonAdminCannotUseTestSearchResource
public void testNonAdminCannotUseTestSearchResource() -
testAdminCanUseTestSearchResource
public void testAdminCanUseTestSearchResource()
-