aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2017-08-02Update the namespace for onapDave Chen2-4/+4
Issue-ID: VNFSDK-62 Change-Id: I1e5296a23bf58820fabb326cf8379fe439243118 Signed-off-by: Dave Chen <wei.d.chen@intel.com>
2017-08-01Remove unused packages out of dependencyLianhao Lu1-5/+0
No need to put packages which is not directly used or already a part of python standard library in the dependency list. Change-Id: I1b1e81beaa5af30404e4f2862e5b2e7d51c5b9b1 Issue-ID: VNFSDK-61 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2017-08-01Resolve the upstream aria dependency issuesLianhao Lu2-10/+8
The upstream arai has been accepted into apache foundation and the pacakge name and interface name have been changed. Here we adopt these upstream changes accordingly. Also we drop conflicting package dependency requirements which are already included in the upstream aria. Change-Id: I9befbe695cc6edc93029f15bbcee3bfe37099d40 Issue-ID: VNFSDK-61 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2017-07-28Added git-review supportLianhao Lu1-0/+4
Added the .gitreview file so developers can run "git review -s" to setup git review environment. Change-Id: Idb4dab88eafa0a6f467f9165f6e0a5ba85a732f6 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2017-02-16Add license headerv2.0.0release/mercuryKrzysztof Frukacz3-0/+42
Added license headers Change-Id: I33969a0331e9b32977307fdcc3280208d5f02ef7 Signed-off-by: Krzysztof Frukacz <krzysztof.frukacz@gigaspaces.com> Issue-id: VNFSDK-71
2017-02-01Fix CLI argument parsingKrzysztof Frukacz1-1/+1
Fix argument list passed to argparser Change-Id: Ib42867a0f9abd6309f5776ac981ee1a0fcdcfd74 Signed-off-by: Krzysztof Frukacz <krzysztof.frukacz@gigaspaces.com> Issue-id: VNFSDK-70
2017-01-31Add unit testsKrzysztof Frukacz9-2/+202
Added unit tests with tox configuration Change-Id: I99a5107689c0df198cdc22e6272176b8c4747896 Signed-off-by: Krzysztof Frukacz <krzysztof.frukacz@gigaspaces.com> Issue-id: VNFSDK-60
2017-01-29Fix assembly files for nexusKrzysztof Frukacz1-1/+2
Added requirements.txt to assembly Change-Id: I9d0fba76e3207417fd99a0c54a79c4f4e51f1043 Signed-off-by: Krzysztof Frukacz <krzysztof.frukacz@gigaspaces.com> Issue-id: VNFSDK-59
2017-02-03Change: Change groupId in pom that fit the wikivictor.gao1-2/+2
Issue-ID: VNFSDK-2 Change-Id: I26c7d600de5496df36f31c601e5bd074e94d97af Signed-off-by: victor.gao <victor.gao@huawei.com>
2017-01-29Add CSAR shared library with CLI toolKrzysztof Frukacz12-0/+701
Initial commit. Shared CSAR Python library with CLI tool Change-Id: I121982cec5c839a47068907a1c4c2b379109a882 Issue-ID: VNFSDK-2 Signed-off-by: Krzysztof Frukacz <krzysztof.frukacz@gigaspaces.com>
2017-01-17Initial empty repositoryAndrew Grimberg0-0/+0