diff options
Diffstat (limited to 'csarvalidation/src/main/java/org')
-rw-r--r-- | csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR816745.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR816745.java b/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR816745.java index ef901f9..47b963e 100644 --- a/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR816745.java +++ b/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR816745.java @@ -20,16 +20,33 @@ import org.onap.cli.fw.schema.OnapCommandSchema; import org.onap.cvc.csar.CSARArchive; import org.onap.cvc.csar.cc.VTPValidateCSARBase; +import java.util.List; +import java.util.Map; + @OnapCommandSchema(schema = "vtp-validate-csar-r816745.yaml") public class VTPValidateCSARR816745 extends VTPValidateCSARBase { + private static final String PM_DICTIONARY = "onap_pm_dictionary"; + @Override protected void validateCSAR(CSARArchive csar) throws Exception { + Map<String, Map<String, List<String>>> nonManoFields = csar.getManifest().getNonMano(); + if(nonManoFields.containsKey(PM_DICTIONARY)) { + validateYamlFile(getLocationOfPmDictionaryFile(nonManoFields)); + } + } + private String getLocationOfPmDictionaryFile(Map<String, Map<String, List<String>>> nonManoFields) { + return nonManoFields.get(PM_DICTIONARY).get("source").get(0); + } + + private void validateYamlFile(String path) { + throw new UnsupportedOperationException("Under development"); } @Override protected String getVnfReqsNo() { return "R816745"; } + } |