From b2393969603cb943bc76f2b65da748b871ee9d17 Mon Sep 17 00:00:00 2001 From: FrancescoFioraEst Date: Thu, 7 Dec 2023 08:58:32 +0000 Subject: Add validation for AC instance element id Issue-ID: POLICY-4900 Change-Id: I78be5924950eec508856be5850a3a749860e0e49 Signed-off-by: FrancescoFioraEst --- .../instantiation/AutomationCompositionInstantiationProvider.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime-acm/src/main') diff --git a/runtime-acm/src/main/java/org/onap/policy/clamp/acm/runtime/instantiation/AutomationCompositionInstantiationProvider.java b/runtime-acm/src/main/java/org/onap/policy/clamp/acm/runtime/instantiation/AutomationCompositionInstantiationProvider.java index af4e844d5..9f126406b 100755 --- a/runtime-acm/src/main/java/org/onap/policy/clamp/acm/runtime/instantiation/AutomationCompositionInstantiationProvider.java +++ b/runtime-acm/src/main/java/org/onap/policy/clamp/acm/runtime/instantiation/AutomationCompositionInstantiationProvider.java @@ -237,6 +237,8 @@ public class AutomationCompositionInstantiationProvider { acDefinitionOpt.get().getServiceTemplate(), acRuntimeParameterGroup.getAcmParameters().getToscaCompositionName())); + result.addResult(automationCompositionProvider.validateElementIds(automationComposition)); + if (result.isValid()) { for (var element : automationComposition.getElements().values()) { var name = element.getDefinition().getName(); -- cgit 1.2.3-korg