diff options
author | saul.gill <saul.gill@est.tech> | 2023-06-27 14:23:26 +0100 |
---|---|---|
committer | Adheli Tavares <adheli.tavares@est.tech> | 2023-06-27 13:58:24 +0000 |
commit | 059adbc2c51c79d97aeb19faac81f1128529e4f7 (patch) | |
tree | 6631c924b350b7c2e022f9b3c76f407939a158ca /runtime-acm | |
parent | 567a8fd97c6b434f430d38c2d4af5a95b7cdb711 (diff) |
Removing old implementation of participant restart
Particpant will be set as offline at deregister
No ac states will be altered at deregister
Issue-ID: POLICY-4742
Change-Id: Ifb297805ed4b97938b7f92855e30f978d474b648
Signed-off-by: saul.gill <saul.gill@est.tech>
Diffstat (limited to 'runtime-acm')
2 files changed, 0 insertions, 2 deletions
diff --git a/runtime-acm/src/main/java/org/onap/policy/clamp/acm/runtime/supervision/SupervisionParticipantHandler.java b/runtime-acm/src/main/java/org/onap/policy/clamp/acm/runtime/supervision/SupervisionParticipantHandler.java index 564fa8d0e..6d438038d 100644 --- a/runtime-acm/src/main/java/org/onap/policy/clamp/acm/runtime/supervision/SupervisionParticipantHandler.java +++ b/runtime-acm/src/main/java/org/onap/policy/clamp/acm/runtime/supervision/SupervisionParticipantHandler.java @@ -86,7 +86,6 @@ public class SupervisionParticipantHandler { var participant = participantOpt.get(); participant.setParticipantState(ParticipantState.OFF_LINE); participantProvider.updateParticipant(participant); - participantProvider.resetParticipantAcElementState(participant.getParticipantId()); } participantDeregisterAckPublisher.send(participantDeregisterMsg.getMessageId()); diff --git a/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/supervision/SupervisionParticipantHandlerTest.java b/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/supervision/SupervisionParticipantHandlerTest.java index f00747c6b..e441befb2 100644 --- a/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/supervision/SupervisionParticipantHandlerTest.java +++ b/runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/supervision/SupervisionParticipantHandlerTest.java @@ -61,7 +61,6 @@ class SupervisionParticipantHandlerTest { handler.handleParticipantMessage(participantDeregisterMessage); verify(participantProvider).updateParticipant(any()); - verify(participantProvider).resetParticipantAcElementState(any()); verify(participantDeregisterAckPublisher).send(participantDeregisterMessage.getMessageId()); } |