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);
}
Aggregations