From e5c35edbc621e151b088307dd019f1b2dce60d07 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 16 Nov 2018 13:57:29 +0530 Subject: CVP validation check Consider Meta folder as incase sensitive Issue-ID: VNFSDK-334 Change-Id: Ic431d173e6a5c19a6407d20544ecbdbe29c6b410 Signed-off-by: Kanagaraj Manickam k00365106 --- .../org/onap/validation/csar/CsarValidator.java | 23 +++++++++------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'csarvalidation') diff --git a/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java b/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java index 88cd0e0..abeb5a9 100644 --- a/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java +++ b/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java @@ -214,25 +214,20 @@ public class CsarValidator { } try { - if(cfile.contains(System.getProperty("file.separator") + CommonConstants.TOSCA_METADATA - + System.getProperty("file.separator") + CommonConstants.TOSCA_META)) { - MAINSERV_MANIFEST = checkAndGetMRF(cfile, "Entry-Manifest"); - if(MAINSERV_MANIFEST == null) { - MAINSERV_MANIFEST = CommonConstants.MAINSERV_MANIFEST; - } - - MAINSERV_TEMPLATE = checkAndGetMRF(cfile, "Entry-Definitions"); - if(MAINSERV_TEMPLATE == null) { - MAINSERV_TEMPLATE = CommonConstants.MAINSERV_TEMPLATE; - } + MAINSERV_MANIFEST = checkAndGetMRF(cfile, "Entry-Manifest"); + if(MAINSERV_MANIFEST == null) { + MAINSERV_MANIFEST = CommonConstants.MAINSERV_MANIFEST; + } - return CommonConstants.SUCCESS_STR; + MAINSERV_TEMPLATE = checkAndGetMRF(cfile, "Entry-Definitions"); + if(MAINSERV_TEMPLATE == null) { + MAINSERV_TEMPLATE = CommonConstants.MAINSERV_TEMPLATE; } + + return CommonConstants.SUCCESS_STR; } catch(Exception e) { return ("PARSE_ERROR" + ":" + "TOSCA metadata not parsed properly! " + ErrorCodes.PARSE_ERROR + e); } - - return "Tosca.meta file does not exist"; } private static String checkAndGetMRF(String mrfFile, String attribute) { -- cgit 1.2.3-korg