Search in sources :

Example 1 with CurrentStatus

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);
}
Also used : CurrentStatus(com.redhat.cloud.notifications.models.CurrentStatus)

Aggregations

CurrentStatus (com.redhat.cloud.notifications.models.CurrentStatus)1