aboutsummaryrefslogtreecommitdiffstats
path: root/vnfsdk_pkgtools/validator
AgeCommit message (Collapse)AuthorFilesLines
2019-11-01Added python3 supportLianhao Lu1-5/+6
Change-Id: I7a09d11cc6506e91327d96e06a9d1001c9567380 Issue-ID: VNFSDK-419 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-04-23Change HPA validation schema due to SOL001 v2.5.1dublinLianhao Lu1-4/+14
Change-Id: I18484bb37890dcf726a5971245234b2494e57781 Issue-ID: VNFSDK-393 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-09-18Updated to new hpa schemaLianhao Lu2-152/+155
Change-Id: I2e546f4a3b56bfb331207034c285323728a3b774 Issue-ID: VNFSDK-326 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-29framework for checking vnf requirementLianhao Lu1-2/+2
Implemented the internal code framework to add test cases to check vnf requirements. Use command line parameter '--test-reqs' with the list of vnf requirment IDs to invoke 'vnfsdk csar-validate'. Also implement test case for R-66070: csar manifest metadata Change-Id: I385e515f3e87f1e89fb7baf9ec3e0560f44541cd Issue-ID: VNFSDK-316 Issue-ID: VNFSDK-174 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-23pkgtools: remove aria validation backendLianhao Lu1-49/+0
Based on the community feedback, drop the aria validation backend because it has been retired. Now we use opnfv-toscaparser as the validation backend because it's used by various projects in ONAP and is recommended by ONAP modeling sub-committee. Issue-ID: VNFSDK-292 Change-Id: Iab65185b3303cad78a01ac930ce9e2760c5d4eb4 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-15Added the logic to validate HPALianhao Lu2-29/+125
Added the code logic to validate HPA for opnfv tosca parser. Also corrected some hpa validation schema errors introduced by the previous patch. Change-Id: Icd61d34d7915aa965ec32adfc3c0f1a117dd6f3e Issue-ID: VNFSDK-194 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-09Ground work for hpa validationLianhao Lu4-1/+345
Added the declarative schema for hpa validation. This is the ground layering work for hpa validation. Change-Id: I2ff30489e191ecf187711e1025f6e3faee9946c3 Issue-ID: VNFSDK-194 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-02Added new opnfv-toscaparser validation backendsLianhao Lu1-0/+42
Change-Id: Ic670ee5dd768e46c6d2398d036f9e8bb5f428475 Issue-ID: VNFSDK-292 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-02Make aria dependency optionalLianhao Lu1-0/+5
Since cloudify has announced the retirement of aria, we need to add opnfv-toscaparser as our default backend. However, since they have conflicting dependencies, we need to make aria dependency optional. Change-Id: I22bb5f7411162828226d4290fd00dfd91d49efa3 Issue-ID: VNFSDK-292 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-04-12Fix aria validation error in import case2.0.0-ONAPbeijing2.0.0-ONAPLianhao Lu1-4/+5
Previously, we assume all the yaml files in the csar package are located under definition directory. This is not always true according to SOL-004. We need to change the way how we call aria to validate the vnfd content within the csar pacakge. Also added the unit test for vnfsdk_pkgtools/validator. Issue-ID: VNFSDK-231 Change-Id: Ia112b21b3bbf64ab980dd4e98aab0e87131f28e0 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-03-22Adjusted for pypi supportLianhao Lu2-0/+92
We need to adjust the python module structure meet the pypi requirements. This has been tested on test pypi https://test.pypi.org/project/vnfsdk. 1. move 3 directories cli/ validator/ packager/ into vnfsdk_pkgtools. so now the python module for vnfsdk pkgtools would be "vnfsdk_pkgtool.*" 2. Added missing README.rst, LICENSE.txt according to pypi requirement. 3. Added new version mechanism accroding onap community suggestions. 4. Other clean sweep job like dos2unix. Change-Id: If90df33673bff045d85d67c29a1d0ab44d0c8858 Issue-ID: VNFSDK-143 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>