diff options
author | Sirisha_Manchikanti <sirisha.manchikanti@est.tech> | 2022-04-06 09:22:17 +0100 |
---|---|---|
committer | Liam Fallon <liam.fallon@est.tech> | 2022-04-11 14:29:25 +0000 |
commit | 4ad746a6beaaeda033adf0956e9ef2fe5d5c9794 (patch) | |
tree | b6123957ede764e92ada79bbaa2251dc89079c0c /participant/participant-impl/participant-impl-kubernetes/src | |
parent | eae4bcc833318cab5cb8f1c828e94eb838faf6ce (diff) |
Rename controlloop to ACM
Issue-ID: POLICY-3941
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: I3a9d66b5f6be55e722bb15326d0af83a1b698a02
Diffstat (limited to 'participant/participant-impl/participant-impl-kubernetes/src')
2 files changed, 5 insertions, 5 deletions
diff --git a/participant/participant-impl/participant-impl-kubernetes/src/main/java/org/onap/policy/clamp/acm/participant/kubernetes/handler/AutomationCompositionElementHandler.java b/participant/participant-impl/participant-impl-kubernetes/src/main/java/org/onap/policy/clamp/acm/participant/kubernetes/handler/AutomationCompositionElementHandler.java index b4cca3acf..1fb41520f 100644 --- a/participant/participant-impl/participant-impl-kubernetes/src/main/java/org/onap/policy/clamp/acm/participant/kubernetes/handler/AutomationCompositionElementHandler.java +++ b/participant/participant-impl/participant-impl-kubernetes/src/main/java/org/onap/policy/clamp/acm/participant/kubernetes/handler/AutomationCompositionElementHandler.java @@ -165,14 +165,14 @@ public class AutomationCompositionElementHandler implements AutomationCompositio * * @param chart ChartInfo */ - public void checkPodStatus(ToscaConceptIdentifier controlLoopId, UUID elementId, + public void checkPodStatus(ToscaConceptIdentifier automationCompositionId, UUID elementId, ChartInfo chart, int timeout, int podStatusCheckInterval) throws ExecutionException, InterruptedException { // Invoke runnable thread to check pod status Future<String> result = executor.submit(new PodStatusValidator(chart, timeout, podStatusCheckInterval), "Done"); if (!result.get().isEmpty()) { LOGGER.info("Pod Status Validator Completed: {}", result.isDone()); - intermediaryApi.updateAutomationCompositionElementState(controlLoopId, elementId, + intermediaryApi.updateAutomationCompositionElementState(automationCompositionId, elementId, AutomationCompositionOrderedState.PASSIVE, AutomationCompositionState.PASSIVE, ParticipantMessageType.AUTOMATION_COMPOSITION_STATE_CHANGE); } diff --git a/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/handler/AutomationCompositionElementHandlerTest.java b/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/handler/AutomationCompositionElementHandlerTest.java index 41d9b845d..5b45cf105 100644 --- a/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/handler/AutomationCompositionElementHandlerTest.java +++ b/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/handler/AutomationCompositionElementHandlerTest.java @@ -174,10 +174,10 @@ class AutomationCompositionElementHandlerTest { doReturn("Done").when(result).get(); doReturn(true).when(result).isDone(); var chartInfo = charts.get(0); - ToscaConceptIdentifier controlLoopId = new ToscaConceptIdentifier(); + ToscaConceptIdentifier automationCompositionId = new ToscaConceptIdentifier(); AutomationCompositionElement element = new AutomationCompositionElement(); assertDoesNotThrow( - () -> automationCompositionElementHandler.checkPodStatus(controlLoopId, element.getId(), chartInfo, - 1, 1)); + () -> automationCompositionElementHandler.checkPodStatus(automationCompositionId, + element.getId(), chartInfo, 1, 1)); } } |