use of org.folio.util.HoldingsStatusUtil.PROCESS_ID in project mod-kb-ebsco-java by folio-org.
the class DefaultLoadHoldingsImplTest method shouldStartLoadingWhenStatusInProgressAndProcessTimedOut.
@Test
public void shouldStartLoadingWhenStatusInProgressAndProcessTimedOut() {
setupDefaultLoadKBConfiguration();
HoldingsLoadingStatus status = getStatusLoadingHoldings(1000, 500, 10, 5);
status.getData().getAttributes().setUpdated(POSTGRES_TIMESTAMP_FORMATTER.format(OffsetDateTime.now().minus(10, ChronoUnit.DAYS)));
saveStatus(STUB_CREDENTIALS_ID, status, PROCESS_ID, vertx);
interceptor = interceptAndStop(LOAD_FACADE_ADDRESS, CREATE_SNAPSHOT_ACTION, message -> {
});
vertx.eventBus().addOutboundInterceptor(interceptor);
postWithStatus(HOLDINGS_LOAD_BY_ID_URL, "", SC_NO_CONTENT, STUB_TOKEN_HEADER);
}
Aggregations