Search in sources :

Example 1 with GroupApi

use of org.broadinstitute.dsde.workbench.client.sam.api.GroupApi in project terra-workspace-manager by DataBiosphere.

the class PrivateResourceCleanupServiceTest method buildGroupApi.

private GroupApi buildGroupApi(AuthenticatedUserRequest userRequest) {
    // Each ApiClient manages its own threadpool. If we start using this method from more than a
    // handful of tests, we should refactor this to share the ApiClient object across tests.
    ApiClient apiClient = new ApiClient().setBasePath(samConfiguration.getBasePath());
    apiClient.setAccessToken(userRequest.getRequiredToken());
    return new GroupApi(apiClient);
}
Also used : GroupApi(org.broadinstitute.dsde.workbench.client.sam.api.GroupApi) ApiClient(org.broadinstitute.dsde.workbench.client.sam.ApiClient)

Aggregations

ApiClient (org.broadinstitute.dsde.workbench.client.sam.ApiClient)1 GroupApi (org.broadinstitute.dsde.workbench.client.sam.api.GroupApi)1