use of com.redhat.cloud.notifications.models.CurrentStatus in project notifications-backend by RedHatInsights.
the class StatusServiceTest method putCurrentStatus.
private void putCurrentStatus(Status status, LocalDateTime startTime, LocalDateTime endTime, int expectedStatusCode) {
CurrentStatus currentStatus = new CurrentStatus();
currentStatus.setStatus(status);
currentStatus.setStartTime(startTime);
currentStatus.setEndTime(endTime);
given().basePath(API_INTERNAL).header(createTurnpikeIdentityHeader("admin", adminRole)).contentType(JSON).body(Json.encode(currentStatus)).when().put("/status").then().statusCode(expectedStatusCode);
}
Aggregations