Class TestkitFixtureResource

java.lang.Object
com.atlassian.crowd.plugins.testkit.rest.TestkitFixtureResource

@Named @Path("/fixture") @Produces("application/json") @Consumes("application/json") public class TestkitFixtureResource extends Object
  • Constructor Details

  • Method Details

    • createSampleDirectory

      @Path("/directory/internal") @POST public javax.ws.rs.core.Response createSampleDirectory(@QueryParam("users") @DefaultValue("10000") int userCount, @QueryParam("groups") @DefaultValue("1000") int groupCount, @QueryParam("usersPerGroup") @DefaultValue("25") int usersPerGroup, @QueryParam("nestedGroupCount") @DefaultValue("10") int nestedGroupCount, @QueryParam("createGroupManagingAllGroups") @DefaultValue("false") boolean createGroupManagingAllGroups, @QueryParam("namePrefix") @DefaultValue("") String namePrefix) throws Exception
      Throws:
      Exception
    • updateDirectory

      @Path("/directory/internal/update") @POST public javax.ws.rs.core.Response updateDirectory(@QueryParam("directoryName") String directoryName, @QueryParam("addNamePrefix") @DefaultValue("") String addNamePrefix, @QueryParam("addUserCount") int addUserCount, @QueryParam("renameUserCount") int renameUserCount, @QueryParam("reAddUserCount") int reAddUserCount, @QueryParam("updateUserCount") int updateUserCount, @QueryParam("userMembershipModifications") int userMembershipModifications, @QueryParam("groupMembershipModifications") int groupMembershipModifications) throws Exception
      Modifies directory entities.
      Parameters:
      directoryName - name of the directory to modify
      addNamePrefix - prefix of names of users to add
      addUserCount - number of users to add
      renameUserCount - number of users to rename
      reAddUserCount - number of users to remove and re-add with different name
      updateUserCount - number of users to update
      userMembershipModifications - number of user memberships to remove and add
      groupMembershipModifications - number of group memberships to remove and add
      Throws:
      Exception
    • loginUsers

      @Path("/directory/delegated/loginusers") public javax.ws.rs.core.Response loginUsers(@QueryParam("cachedName") String cachedName, @QueryParam("delegatedName") String delegatedName, @QueryParam("includeExisting") boolean includeExisting) throws Exception
      The purpose of this method is to fill in cache of the delegated directory by logging in all users from cached directory, that should be pointed at the same target directory.
      Parameters:
      cachedName - name of the directory to fetch the user names from
      delegatedName - name of the delegated directory
      includeExisting - whether users already existing in the delegated directory should be logged in
      Throws:
      Exception
    • removeTombstones

      @Path("/tombstone") @DELETE public void removeTombstones()