diff options
Diffstat (limited to 'participant/participant-impl')
2 files changed, 2 insertions, 1 deletions
diff --git a/participant/participant-impl/participant-impl-http/src/main/java/org/onap/policy/clamp/acm/participant/http/main/webclient/AcHttpClient.java b/participant/participant-impl/participant-impl-http/src/main/java/org/onap/policy/clamp/acm/participant/http/main/webclient/AcHttpClient.java index a88f93aa5..1956b0d6c 100644 --- a/participant/participant-impl/participant-impl-http/src/main/java/org/onap/policy/clamp/acm/participant/http/main/webclient/AcHttpClient.java +++ b/participant/participant-impl/participant-impl-http/src/main/java/org/onap/policy/clamp/acm/participant/http/main/webclient/AcHttpClient.java @@ -92,7 +92,7 @@ public class AcHttpClient { LOGGER.error("Error occurred on the HTTP response ", ex); responseMap.put(request.getRestRequestId(), new ImmutablePair<>(ex.getStatusCode().value(), ex.getResponseBodyAsString())); - } catch (WebClientRequestException ex) { + } catch (WebClientRequestException | IllegalStateException ex) { LOGGER.error("Error occurred on the HTTP request ", ex); responseMap.put(request.getRestRequestId(), new ImmutablePair<>(404, ex.getMessage())); } diff --git a/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/acm/participant/policy/main/utils/TestListenerUtils.java b/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/acm/participant/policy/main/utils/TestListenerUtils.java index 17d961880..5c4f06d2d 100644 --- a/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/acm/participant/policy/main/utils/TestListenerUtils.java +++ b/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/acm/participant/policy/main/utils/TestListenerUtils.java @@ -52,6 +52,7 @@ public final class TestListenerUtils { var participantId = CommonTestData.getParticipantId(); participantPrimeMsg.setParticipantId(participantId); + participantPrimeMsg.setCompositionId(UUID.randomUUID()); participantPrimeMsg.setTimestamp(Instant.now()); participantPrimeMsg.setTimestamp(Instant.ofEpochMilli(3000)); participantPrimeMsg.setMessageId(UUID.randomUUID()); |