aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-05-06VNFSDK committer promotion6.0.0-ONAPfrankfurtKanagaraj Manickam1-18/+43
Issue-ID: VNFSDK-580 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: Id182de0556b39303267bc803e3794ffad0ed6340 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com>
2019-11-29Fix pep8 error and warningsLianhao Lu21-296/+294
Change-Id: Ic32eefcfd4be4d57c9cf30eff0b3fa1aa730d2c0 Issue-ID: VNFSDK-532 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-29Added both python 2/3 unit test in toxLianhao Lu2-3/+8
Change-Id: I97cd872fa2b67b07d459a0f5c1dd1e4aa634f876 Issue-ID: VNFSDK-532 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-29Support vnf_release_date_time in manifestLianhao Lu3-12/+42
SOL004 v2.6.1 changes the manifest metadata key name from 'vnf_release_data_time' in v2.4.1 to 'vnf_release_date_time'. Support the new chagnes while keeping backward compatibile with v2.4.1. Change-Id: I205285f05963dc4d60d6867866b5b2fe114d8da3 Issue-ID: VNFSDK-420 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-29Support Non-MANO artifact setsLianhao Lu2-2/+55
Change-Id: I55815414989e7fe540e5a4bd828291c21d33bc9a Issue-ID: VNFSDK-420 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-29Include list of files in manifest fileLianhao Lu4-59/+76
1. Per SOL004 v2.6.1, the list of files should be in included in the manifest file even without integrity. 2. Refactor the manifest file parsing code to reduce the complexity. Change-Id: Iac06dff7f1ca2014e7c1a5b1546ecae1b02ad7c6 Issue-ID: VNFSDK-420 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-29Adapt to TOSCA.meta chagnes in SOL004 v2.6.1Lianhao Lu11-182/+523
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 Lu5-10/+15
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 Lu13-33/+32
Change-Id: I7a09d11cc6506e91327d96e06a9d1001c9567380 Issue-ID: VNFSDK-419 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-09-05Upgrade oparent to v2.1.0Victor Gao1-1/+1
Issue-ID: VNFSDK-464 Signed-off-by: Victor Gao <victor.gao@huawei.com> Change-Id: I3cab541d4724e1a9dc65cae32a49d236b8f104c9
2019-06-29global jjb migrationVictor Gao1-1/+1
Issue-ID: VNFSDK-423 Signed-off-by: Victor Gao <victor.gao@huawei.com> Change-Id: I32fd0ef1168ab2a2adfd988d026b6bb2a0a2900f
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 Zebek5-11/+35
Make tests runnable in IDE. Change-Id: I9901c10c319687a10616f634fca25297cf84df3a Issue-ID: VNFSDK-375 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2018-09-21Update INFO.yaml file3.0.0-ONAPcasablancaJessica Wagantall1-9/+10
- Add Victor Gao as PTL - Remove Chris Donley Change-Id: Ib2037cf8a839d7b21e22ec5d711699e1d757eb78 Issue-ID: CIMAN-134 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
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 Lu4-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 Lu3-0/+30
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 Lu3-0/+49
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 Lu3-0/+28
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 Lu3-4/+48
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 Lu8-6/+216
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 Lu2-3/+40
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-27Merge "Resolve warning from ruamel.yaml"Chris Donley1-2/+2
2018-08-27Merge "Use managed guava version"Chris Donley2-2/+3
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 Lu6-16/+192
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-24Use managed guava versionGary Wu2-2/+3
Use centrally managed guava version specified in oparent. Includes upgrade to oparent 1.2.0. This change was submitted by script and may include additional whitespace or formatting changes. Change-Id: I1494f5f9d61ca0e889cedb41cf8558dcd49df61e Issue-ID: INT-619 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
2018-08-24Added supporting functions for certificateLianhao Lu6-0/+158
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 Lu5-81/+1
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 Lu5-29/+141
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 Lu8-2/+391
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 Lu5-40/+52
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 Lu4-2/+73
Change-Id: Ic670ee5dd768e46c6d2398d036f9e8bb5f428475 Issue-ID: VNFSDK-292 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-08-02Make aria dependency optionalLianhao Lu5-8/+14
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 Lu3-8/+26
Change-Id: If91dc29c40e074737baed39805aba43458911952 Issue-ID: VNFSDK-294 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-07-23Update INFO.yamlGildas Lanilis1-1/+1
Add LFID Change-Id: If54b90036888b94258c78bf073acaba5e0093f2b Issue-ID: CIMAN-134 Signed-off-by: Gildas Lanilis <gildas.lanilis@huawei.com>
2018-07-19Add INFO.yaml fileJessica Wagantall1-0/+116
Add INFO.yaml to list: - Project description - Properties - PTL information - Meeting information - Committer information Change-Id: I56ee8a8c87296775082e9fcb2ba8955bbc5d0d13 Issue-ID: CIMAN-134 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2018-04-12Fix aria validation error in import case2.0.0-ONAPbeijing2.0.0-ONAPLianhao Lu3-4/+32
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 Lu5-9/+64
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 Lu7-35/+319
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-23Update pom.xml for pkgtools sonar supportChris Donley1-6/+2
Issue-ID: VNFSDK-210 Change-Id: I6feb427dc422ee16488b5dd939ed3bf5896303c7 Signed-off-by: Chris Donley <christopher.donley@huawei.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-23Revert "Added run-sonar.sh script"Lianhao Lu1-3/+0
This reverts commit b0eb866eb2a56c8a7cf1bd9183451226b890d77e. run-sonar.sh script doesn't help in our case. Change-Id: I152e551a27c24ff1b41441e57c666abe1baa0234 Issue-ID: VNFSDK-210 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-03-22Added run-sonar.sh scriptLianhao Lu1-0/+3
Try to mimic optf/has to add run-sonar.sh script to trigger tox test to generate the code coverage report. Change-Id: Ie44ae58ab4b870aea938dcda1661b08d899fa0a8 Issue-ID: VNFSDK-210 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-03-22Adjusted for pypi supportLianhao Lu18-516/+526
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>
2018-03-21Updating pom for sonar supportChris Donley1-0/+1
adding sonar sources Issue-ID: VNFSDK-210 Change-Id: Iacca17491815a9be9d48aa7e907676e92a33b283 Signed-off-by: Chris Donley <christopher.donley@huawei.com>
2018-03-20Update sonar support for vnfsdk/pkgtoolsChris Donley1-5/+5
Updating pom.xml to adjust included and excluded directories. Issue-ID: VNFSDK-210 Change-Id: Iba01bff695ad32f433153a77f29a30f88995fb07 Signed-off-by: Chris Donley <christopher.donley@huawei.com>
2018-03-20Update pom.xml for sonar supportChris Donley1-1/+6
Update python test configuration in the pom file Issue-ID: VNFSDK-210 Change-Id: I52615cc986587fe7df0f1b8c2ca9608f14b35e7b Signed-off-by: Chris Donley <christopher.donley@huawei.com>