From da5e2b085b5eb072e318fcf239b4b79bb30c83b8 Mon Sep 17 00:00:00 2001 From: sebdet Date: Fri, 4 Jun 2021 17:56:49 +0200 Subject: Add parameter for Zip Validation Add a onboarding config parameter to enable or disable the Zip Validation Issue-ID: SDC-3603 Signed-off-by: sebdet Change-Id: I83f539caccd29799f613d4e0bb65c7d7e6b97b45 --- .../openecomp/sdc/validation/impl/validators/GlobalContextUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openecomp-be/lib') diff --git a/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main/java/org/openecomp/sdc/validation/impl/validators/GlobalContextUtil.java b/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main/java/org/openecomp/sdc/validation/impl/validators/GlobalContextUtil.java index b490f4b35f..c104085c4d 100644 --- a/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main/java/org/openecomp/sdc/validation/impl/validators/GlobalContextUtil.java +++ b/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main/java/org/openecomp/sdc/validation/impl/validators/GlobalContextUtil.java @@ -24,6 +24,7 @@ import java.util.Set; import java.util.function.Predicate; import java.util.stream.Collectors; import org.openecomp.core.validation.types.GlobalValidationContext; +import org.openecomp.sdc.common.utils.SdcCommon; import org.openecomp.sdc.heat.datatypes.manifest.FileData; import org.openecomp.sdc.heat.datatypes.manifest.FileData.Type; import org.openecomp.sdc.heat.datatypes.manifest.ManifestContent; @@ -44,7 +45,7 @@ class GlobalContextUtil { } private static boolean isManifestMissing(GlobalValidationContext globalContext) { - return globalContext.getFileContent("MANIFEST.json").isEmpty(); + return globalContext.getFileContent(SdcCommon.MANIFEST_NAME).isEmpty(); } private static Set filterFilesByType(Map filesWithTypes, -- cgit 1.2.3-korg