aboutsummaryrefslogtreecommitdiffstats
path: root/vnfsdk_pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2018-08-27Support signing and certificateLianhao Lu3-11/+97
Added the support of certificate and signing based on SOL-004. Change-Id: I864f298edbcd85a9da2126d369a5b98d7950d590 Issue-ID: VNFSDK-144 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-24Added supporting functions for certificateLianhao Lu1-0/+56
Added the supporting functions for sign and verify using certificate. Change-Id: Ic84e773d60c248963e63909cbdae3edd99bd5293 Issue-ID: VNFSDK-144 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-02Support verbose loggingLianhao Lu2-33/+48
The previous verbose logging switch '-v' doesn't work as we expected. Change the code to follow python conventions to make it work. Issue-ID: VNFSDK-297 Change-Id: Ia0c41b5067d9c28acccabc4137797310052fce5e Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-02Added new opnfv-toscaparser validation backendsLianhao Lu2-1/+43
Change-Id: Ic670ee5dd768e46c6d2398d036f9e8bb5f428475 Issue-ID: VNFSDK-292 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-02Make aria dependency optionalLianhao Lu2-3/+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-07-26Added remote file digest verificationLianhao Lu2-8/+18
Change-Id: If91dc29c40e074737baed39805aba43458911952 Issue-ID: VNFSDK-294 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-26Added file digest computationLianhao Lu3-5/+39
Support to compute file digest and save it to manifest file. Also extend the manifest file module to be able to write content into temporary file. Change-Id: If1f3f42799eb527bdeac418d1a40aa203641f628 Issue-ID: VNFSDK-174 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-03-26Support of file digest in manifest fileLianhao Lu2-0/+197
Per sol-004, section 4.3.2, the csar manifest file should include the digest of individual files contained in the package. This patch lays the foundation of that support. - Added content check of manifest file - Added support of generating local file digest in manifest file Change-Id: If575012d319e6f6aa0e2259e7405d8a2b6f8f338 Issue-ID: VNFSDK-174 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-03-23Bump version to 1.1.0Lianhao Lu1-1/+1
Need to align with all other component for Beijing release. Change-Id: I836e5b80a874029e4a232f6fe0e368ce79d2595f Issue-ID: VNFSDK-228 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-03-22Adjusted for pypi supportLianhao Lu8-0/+542
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>