Fix import service with concat function values 04/131604/4
authorMichaelMorris <michael.morris@est.tech>
Thu, 20 Oct 2022 13:16:56 +0000 (14:16 +0100)
committerVasyl Razinkov <vasyl.razinkov@est.tech>
Tue, 25 Oct 2022 16:05:35 +0000 (16:05 +0000)
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4225
Change-Id: Iefc402c5dd6338e5bb13a3d425363e777fbbec04

catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ImportUtils.java
common-be/src/main/java/org/openecomp/sdc/be/utils/TypeUtils.java

index a28d587..181c860 100644 (file)
@@ -675,7 +675,7 @@ public final class ImportUtils {
 
     public static boolean containsGetInput(Object propValue) {
         String value = getPropertyJsonStringValue(propValue, ToscaPropertyType.MAP.getType());
-        return value != null && value.contains(TypeUtils.ToscaTagNamesEnum.GET_INPUT.getElementName());
+        return value != null && value.contains(TypeUtils.ToscaTagNamesEnum.GET_INPUT.getElementName()) && !value.contains(TypeUtils.ToscaTagNamesEnum.CONCAT.getElementName());
     }
 
     public static String getPropertyJsonStringValue(Object value, String type) {
index 7602509..ff56772 100644 (file)
@@ -72,7 +72,7 @@ public class TypeUtils {
         ATTRIBUTES("attributes"), LABEL("label"), HIDDEN("hidden"), IMMUTABLE("immutable"), ANNOTATIONS("annotations"),
         VERSION("version"), OPERATIONS("operations"), NOTIFICATIONS("notifications"),
         //functions
-        GET_INPUT("get_input"),
+        GET_INPUT("get_input"), CONCAT("concat"),
         // Definitions
         DATA_TYPES("data_types"), NODE_TYPES("node_types"), POLICY_TYPES("policy_types"),  IMPORTS("imports"),
         //Operations