aboutsummaryrefslogtreecommitdiffstats
path: root/tests/packager
AgeCommit message (Collapse)AuthorFilesLines
2019-11-29Fix pep8 error and warningsLianhao Lu4-180/+180
Change-Id: Ic32eefcfd4be4d57c9cf30eff0b3fa1aa730d2c0 Issue-ID: VNFSDK-532 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-29Support vnf_release_date_time in manifestLianhao Lu1-4/+26
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 Lu1-0/+21
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 Lu2-4/+12
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 Lu3-3/+207
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-21Correct hash algorithm name in the manifest fileLianhao Lu2-8/+8
Change-Id: I3817a296ec4480a18ee39f95f283062fa79d0cbf Issue-ID: VNFSDK-518 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-11-01Added python3 supportLianhao Lu2-2/+2
Change-Id: I7a09d11cc6506e91327d96e06a9d1001c9567380 Issue-ID: VNFSDK-419 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-02-26Remove file path hardcodesBogumil Zebek2-8/+14
Make tests runnable in IDE. Change-Id: I9901c10c319687a10616f634fca25297cf84df3a Issue-ID: VNFSDK-375 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2018-08-29Added more logic about cmd param validationLianhao Lu1-0/+37
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-27Support signing and certificateLianhao Lu2-5/+76
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/+26
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-02Support verbose loggingLianhao Lu1-3/+2
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-07-26Added remote file digest verificationLianhao Lu1-0/+8
Change-Id: If91dc29c40e074737baed39805aba43458911952 Issue-ID: VNFSDK-294 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-03-26Added file digest computationLianhao Lu1-2/+23
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 Lu3-16/+137
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-22Adjusted for pypi supportLianhao Lu1-1/+1
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>
2017-09-14Update to align with package model in R1Lianhao Lu1-7/+48
1. Added the support of manifest file, change history file, test directory, license directory. 2. Added the support of including empty directories in the final csar package. Change-Id: I639110b2e92c91ec9c6bf5c505a60bb1d3b63599 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Issue-Id: VNFSDK-52
2017-01-31Add unit testsKrzysztof Frukacz2-0/+53
Added unit tests with tox configuration Change-Id: I99a5107689c0df198cdc22e6272176b8c4747896 Signed-off-by: Krzysztof Frukacz <krzysztof.frukacz@gigaspaces.com> Issue-id: VNFSDK-60