aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2018-03-20Added sonar coverage reportLianhao Lu2-3/+8
Adjusted the tox settings to generate the unit test coverage report to be used by sonar. Change-Id: I825b1770f1a27ceaafde181ce9d7cd44882e70c6 Issue-ID: VNFSDK-210 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-03-16Upgrade to latest oparentGildas Lanilis1-1/+1
Update pom.xml file to latest version release of oparent, 1.1.0 Change-Id: I26931bfb479b7a0785a311899844a4bfadd06d3e Issue-ID: INT-443 Signed-off-by: Gildas Lanilis <gildas.lanilis@huawei.com>
2018-03-14Update POM to fix broken build processChris Donley1-1/+1
Issue-ID: VNFSDK-210 Change-Id: I89e803d3790233b0f891e8454559b6a14cd19de1 Signed-off-by: Chris Donley <christopher.donley@huawei.com>
2018-03-05Explicitly disable sonar skipLianhao Lu1-0/+1
Change-Id: Ia14f21e27833eaef1eb45b6ec59788f361745369 Issue-ID: VNFSDK-210 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-03-02Use spaces instead of tabsLianhao Lu1-2/+2
Change-Id: I458705b6e31fbb45f9459492667cb7fe5d7aba62 Issue-ID: VNFSDK-210 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2018-02-22Added sonar support and update oparent versionLianhao Lu1-2/+7
Issue-ID: VNFSDK-210 Change-Id: Icf7f0c4fabc03f30e18656df87fe93ad94335104 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2017-09-25Include missing py filesLianhao Lu1-2/+3
Include missing *.py files generated by 'mvn package'. Change-Id: I14be5d8d37b6fab2335d01af3c5dfd00c54ec757 Issue-ID: VNFSDK-98 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2017-09-15Added .gitignore fileLianhao Lu1-0/+4
Added .gitignore file to exclude files which should not tracked by git. Issue-Id: VNFSDK-84 Change-Id: I6b3e2888b9d30fc675cd4a5f5fb9cb6ee9db889e Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2017-09-14Update to align with package model in R1Lianhao Lu6-29/+203
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-09-08Cleanup project's name in SonarJessica Wagantall1-1/+1
The name parameter in the root pom.xml should match the project name in gerrit to reflect consistency in Sonar. Change-Id: I305a7d4f86164ba6477ed050daeb053cc978e58d Issue-id: CIMAN-65 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2017-09-01Decouple aria parserLianhao Lu5-21/+109
Use stevedore to make the aria parser as a plugin of the vnfsdk package tool. Currently, the aria parser is still the default parser but 3rd party developer can add other plugins as a parser to validate the csar packages. Change-Id: I4a1a1c5e65103fb93fa8aebf3d683781f4888ea4 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Issue-Id: VNFSDK-60
2017-08-18Unified dependency requirement into single fileLianhao Lu4-17/+35
Use the requirements.txt as the single file to include all the dependencies. This is to unblock the jenkins verify job failure. Change-Id: If68b61826bfe8d32d08e59d9b67a8791cc878833 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Issue-Id: VNFSDK-69
2017-08-12Merge "Update version of oparent project"Gao Weitao1-1/+1
2017-08-12Merge "Update the namespace for onap"Gao Weitao2-4/+4
2017-08-02Update version of oparent projectDave Chen1-1/+1
`1.1.0-SNAPSHOT` is legacy from Open-O, update the version so that it could be built successfully. Issue-ID: VNFSDK-63 Change-Id: I28193e8de68a0a6033b6009474c2543993d7f3ee Signed-off-by: Dave Chen <wei.d.chen@intel.com>