Search in sources :

Example 1 with UnauthenticatedApi

use of bio.terra.workspace.api.UnauthenticatedApi in project terra-workspace-manager by DataBiosphere.

the class ServiceStatus method userJourney.

@Override
public void userJourney(TestUserSpecification testUser) throws Exception {
    if (delay.getSeconds() > 0)
        TimeUnit.SECONDS.sleep(delay.getSeconds());
    logger.info("Checking service status endpoint now.");
    ApiClient apiClient = ClientTestUtils.getClientWithoutAccessToken(server);
    UnauthenticatedApi unauthenticatedApi = new UnauthenticatedApi(apiClient);
    unauthenticatedApi.serviceStatus();
    int httpCode = unauthenticatedApi.getApiClient().getStatusCode();
    logger.info("Service status return code: {}", httpCode);
}
Also used : ApiClient(bio.terra.workspace.client.ApiClient) UnauthenticatedApi(bio.terra.workspace.api.UnauthenticatedApi)

Aggregations

UnauthenticatedApi (bio.terra.workspace.api.UnauthenticatedApi)1 ApiClient (bio.terra.workspace.client.ApiClient)1