aboutsummaryrefslogtreecommitdiffstats
path: root/vnfsdk_pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2019-11-29Adapt to TOSCA.meta chagnes in SOL004 v2.6.1Lianhao Lu6-179/+298
Adapted to changes made in SOL004 v2.6.1 about TOSCA.meta file content, while still keeps the backward ability to generate SOL004 v2.4.1 compatible csar file. Issue-ID: VNFSDK-420 Change-Id: I2ea8d001211ea15c8409ee2e2802798a0945f390 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-21Support new version of opensslLianhao Lu2-6/+7
1. Support new version of openssl >= 1.1.1. 2. Add a blank line between digest and signature section per spec SOL004. Issue-ID: VNFSDK-519 Change-Id: I92873897805ab627a31eb5c09450e33b2f091db5 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-21Correct hash algorithm name in the manifest fileLianhao Lu3-2/+7
Change-Id: I3817a296ec4480a18ee39f95f283062fa79d0cbf Issue-ID: VNFSDK-518 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-21Add non-empty directory zip entries in the csarLianhao Lu1-7/+7
Issue-ID: VNFSDK-517 Change-Id: Ib699949ae72a3d3a7d141ad5ddc331343dac16ac Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-01Added python3 supportLianhao Lu7-17/+22
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>
2019-02-26Remove file path hardcodesBogumil Zebek1-0/+8
Make tests runnable in IDE. Change-Id: I9901c10c319687a10616f634fca25297cf84df3a Issue-ID: VNFSDK-375 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2018-09-18Bump version to 1.2.0.Lianhao Lu1-1/+1
Change-Id: Ic26d8575f89559114565c5e898a0e1f94db94820 Issue-ID: VNFSDK-327 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-30Test for vnf requirement R-35851Lianhao Lu1-0/+22
Implement test for vnf requirement R-35851: The VNF Package MUST include VNF topology that describes basic network and application connectivity internal and external to the VNF including Link type, KPIs, Bandwidth, latency, jitter, QoS (if applicable) for each interface. For now, we only check the existence of CP or VL, because Link type, bandwidth are already foced by ONAP DM. For other KPIs, current onap DM doesn't define yet. Change-Id: I6ad78edfcbd96ef748e1dbe5f0674b6e4e537e06 Issue-ID: VNFSDK-314 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-30Test for vnf requirement R-26881Lianhao Lu1-0/+27
Implement test for vnf requirement R-26881: The VNF provider MUST provide the binaries and images needed to instantiate the VNF (VNF and VNFC images). Change-Id: Idce2e598e98365b87ad0491975adbb0f76b38604 Issue-ID: VNFSDK-313 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-30Test for vnf requirement R-04298Lianhao Lu1-0/+15
Implement test for vnf requirement R-04298: The VNF provider MUST provide their testing scripts to support testing. Change-Id: I16e5b7f01fbf33983846a3f82895e5c78fe65948 Issue-ID: VNFSDK-312 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-30Test for vnf requirement R-77707Lianhao Lu1-0/+18
Implement test for vnf requirement R-77707: provider MUST include a Manifest File that contains a list of all the components in the VNF package. Change-Id: Ief3f8af2cce20d003007147f106ba9c72bcde292 Issue-ID: VNFSDK-317 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-29framework for checking vnf requirementLianhao Lu4-5/+150
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-29Added more logic about cmd param validationLianhao Lu1-3/+3
Shouldn't allow the user to set digest or certificate if manifest is not set. Change-Id: Iccb9f038106d52039f75ce80af1cce3858d1fba5 Issue-ID: VNFSDK-311 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-28Resolve warning from ruamel.yamlLianhao Lu1-2/+2
Change-Id: Id22f17ec46896ff8a1044bf54115a7bd30746c77 Issue-ID: VNFSDK-309 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
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>