vnfsdk/pkgtools.git
6 years agoUse managed guava version 57/62857/1
Gary Wu [Fri, 24 Aug 2018 22:33:30 +0000 (15:33 -0700)]
Use managed guava version

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>
6 years agopkgtools: remove aria validation backend 53/61953/1
Lianhao Lu [Thu, 23 Aug 2018 03:31:35 +0000 (11:31 +0800)]
pkgtools: remove aria validation backend

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>
6 years agoAdded the logic to validate HPA 81/59981/2
Lianhao Lu [Fri, 10 Aug 2018 09:04:14 +0000 (17:04 +0800)]
Added the logic to validate HPA

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>
6 years agoGround work for hpa validation 13/59813/1
Lianhao Lu [Thu, 9 Aug 2018 08:45:49 +0000 (16:45 +0800)]
Ground work for hpa validation

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>
6 years agoSupport verbose logging 25/58625/1
Lianhao Lu [Thu, 2 Aug 2018 08:16:24 +0000 (16:16 +0800)]
Support verbose logging

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>
6 years agoAdded new opnfv-toscaparser validation backends 93/58593/1
Lianhao Lu [Thu, 2 Aug 2018 06:48:53 +0000 (14:48 +0800)]
Added new opnfv-toscaparser validation backends

Change-Id: Ic670ee5dd768e46c6d2398d036f9e8bb5f428475
Issue-ID: VNFSDK-292
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoMake aria dependency optional 91/58591/1
Lianhao Lu [Fri, 27 Jul 2018 05:28:48 +0000 (13:28 +0800)]
Make aria dependency optional

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>
6 years agoAdded remote file digest verification 81/57681/1
Lianhao Lu [Thu, 26 Jul 2018 09:50:28 +0000 (17:50 +0800)]
Added remote file digest verification

Change-Id: If91dc29c40e074737baed39805aba43458911952
Issue-ID: VNFSDK-294
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoUpdate INFO.yaml 37/57237/1
Gildas Lanilis [Mon, 23 Jul 2018 21:53:25 +0000 (23:53 +0200)]
Update INFO.yaml

Add LFID

Change-Id: If54b90036888b94258c78bf073acaba5e0093f2b
Issue-ID: CIMAN-134
Signed-off-by: Gildas Lanilis <gildas.lanilis@huawei.com>
6 years agoAdd INFO.yaml file 15/56815/2
Jessica Wagantall [Thu, 19 Jul 2018 00:47:08 +0000 (17:47 -0700)]
Add INFO.yaml file

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>
7 years agoFix aria validation error in import case 83/42383/1 2.0.0-ONAP beijing 2.0.0-ONAP
Lianhao Lu [Fri, 23 Mar 2018 16:04:37 +0000 (00:04 +0800)]
Fix aria validation error in import case

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>
7 years agoAdded file digest computation 65/38365/1
Lianhao Lu [Mon, 26 Mar 2018 05:35:22 +0000 (13:35 +0800)]
Added file digest computation

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>
7 years agoSupport of file digest in manifest file 63/38363/1
Lianhao Lu [Sat, 24 Mar 2018 14:36:08 +0000 (22:36 +0800)]
Support of file digest in manifest file

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>
7 years agoUpdate pom.xml for pkgtools sonar support 97/38197/1
Chris Donley [Fri, 23 Mar 2018 20:35:06 +0000 (13:35 -0700)]
Update pom.xml for pkgtools sonar support

Issue-ID: VNFSDK-210

Change-Id: I6feb427dc422ee16488b5dd939ed3bf5896303c7
Signed-off-by: Chris Donley <christopher.donley@huawei.com>
7 years agoBump version to 1.1.0 01/38101/1
Lianhao Lu [Fri, 23 Mar 2018 13:40:40 +0000 (21:40 +0800)]
Bump version to 1.1.0

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>
7 years agoRevert "Added run-sonar.sh script" 17/37917/1
Lianhao Lu [Fri, 23 Mar 2018 01:11:10 +0000 (09:11 +0800)]
Revert "Added run-sonar.sh script"

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>
7 years agoAdded run-sonar.sh script 91/37791/1
Lianhao Lu [Thu, 22 Mar 2018 14:07:56 +0000 (22:07 +0800)]
Added run-sonar.sh script

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>
7 years agoAdjusted for pypi support 57/37757/1
Lianhao Lu [Thu, 22 Mar 2018 12:39:04 +0000 (20:39 +0800)]
Adjusted for pypi support

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>
7 years agoUpdating pom for sonar support 85/37585/1
Chris Donley [Wed, 21 Mar 2018 20:49:43 +0000 (13:49 -0700)]
Updating pom for sonar support

adding sonar sources

Issue-ID: VNFSDK-210

Change-Id: Iacca17491815a9be9d48aa7e907676e92a33b283
Signed-off-by: Chris Donley <christopher.donley@huawei.com>
7 years agoUpdate sonar support for vnfsdk/pkgtools 73/37273/2
Chris Donley [Tue, 20 Mar 2018 22:56:36 +0000 (15:56 -0700)]
Update sonar support for vnfsdk/pkgtools

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>
7 years agoUpdate pom.xml for sonar support 45/37245/3
Chris Donley [Tue, 20 Mar 2018 20:35:25 +0000 (13:35 -0700)]
Update pom.xml for sonar support

Update python test configuration in the pom file

Issue-ID: VNFSDK-210
Change-Id: I52615cc986587fe7df0f1b8c2ca9608f14b35e7b
Signed-off-by: Chris Donley <christopher.donley@huawei.com>
7 years agoAdded sonar coverage report 83/36883/1
Lianhao Lu [Tue, 20 Mar 2018 01:26:54 +0000 (09:26 +0800)]
Added sonar coverage report

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>
7 years agoUpgrade to latest oparent 07/36307/1
Gildas Lanilis [Fri, 16 Mar 2018 22:37:05 +0000 (15:37 -0700)]
Upgrade to latest oparent

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>
7 years agoUpdate POM to fix broken build process 51/35851/1
Chris Donley [Wed, 14 Mar 2018 23:45:25 +0000 (16:45 -0700)]
Update POM to fix broken build process

Issue-ID: VNFSDK-210

Change-Id: I89e803d3790233b0f891e8454559b6a14cd19de1
Signed-off-by: Chris Donley <christopher.donley@huawei.com>
7 years agoExplicitly disable sonar skip 81/33981/1
Lianhao Lu [Mon, 5 Mar 2018 06:05:03 +0000 (14:05 +0800)]
Explicitly disable sonar skip

Change-Id: Ia14f21e27833eaef1eb45b6ec59788f361745369
Issue-ID: VNFSDK-210
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
7 years agoUse spaces instead of tabs 15/33815/2
Lianhao Lu [Fri, 2 Mar 2018 15:11:55 +0000 (23:11 +0800)]
Use spaces instead of tabs

Change-Id: I458705b6e31fbb45f9459492667cb7fe5d7aba62
Issue-ID: VNFSDK-210
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
7 years agoAdded sonar support and update oparent version 73/32473/1
Lianhao Lu [Thu, 22 Feb 2018 01:48:24 +0000 (09:48 +0800)]
Added sonar support and update oparent version

Issue-ID: VNFSDK-210
Change-Id: Icf7f0c4fabc03f30e18656df87fe93ad94335104
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
7 years agoInclude missing py files 85/14985/1
Lianhao Lu [Mon, 25 Sep 2017 08:37:27 +0000 (16:37 +0800)]
Include missing py files

Include missing *.py files generated by 'mvn package'.

Change-Id: I14be5d8d37b6fab2335d01af3c5dfd00c54ec757
Issue-ID: VNFSDK-98
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
7 years agoAdded .gitignore file 99/12599/1
Lianhao Lu [Fri, 15 Sep 2017 01:11:53 +0000 (09:11 +0800)]
Added .gitignore file

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>
7 years agoUpdate to align with package model in R1 97/12397/1
Lianhao Lu [Thu, 14 Sep 2017 07:48:04 +0000 (15:48 +0800)]
Update to align with package model in R1

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

7 years agoCleanup project's name in Sonar 43/11343/1
Jessica Wagantall [Fri, 8 Sep 2017 20:47:14 +0000 (13:47 -0700)]
Cleanup project's name in Sonar

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>
7 years agoDecouple aria parser 13/9813/1
Lianhao Lu [Fri, 1 Sep 2017 02:36:01 +0000 (10:36 +0800)]
Decouple aria parser

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

7 years agoUnified dependency requirement into single file 33/6533/2
Lianhao Lu [Tue, 1 Aug 2017 07:01:24 +0000 (15:01 +0800)]
Unified dependency requirement into single file

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

7 years agoMerge "Update version of oparent project"
Gao Weitao [Sat, 12 Aug 2017 02:40:29 +0000 (02:40 +0000)]
Merge "Update version of oparent project"

7 years agoMerge "Update the namespace for onap"
Gao Weitao [Sat, 12 Aug 2017 02:39:27 +0000 (02:39 +0000)]
Merge "Update the namespace for onap"

7 years agoUpdate version of oparent project 21/6521/3
Dave Chen [Wed, 2 Aug 2017 01:01:11 +0000 (09:01 +0800)]
Update version of oparent project

`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>
7 years agoUpdate the namespace for onap 25/6325/4
Dave Chen [Fri, 28 Jul 2017 07:15:36 +0000 (15:15 +0800)]
Update the namespace for onap

Issue-ID: VNFSDK-62
Change-Id: I1e5296a23bf58820fabb326cf8379fe439243118
Signed-off-by: Dave Chen <wei.d.chen@intel.com>
7 years agoRemove unused packages out of dependency 71/6471/1
Lianhao Lu [Tue, 1 Aug 2017 03:13:33 +0000 (11:13 +0800)]
Remove unused packages out of dependency

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>
7 years agoResolve the upstream aria dependency issues 69/6469/1
Lianhao Lu [Tue, 1 Aug 2017 02:49:31 +0000 (10:49 +0800)]
Resolve the upstream aria dependency issues

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>
7 years agoAdded git-review support 23/6323/1
Lianhao Lu [Fri, 28 Jul 2017 07:22:31 +0000 (15:22 +0800)]
Added git-review support

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>
8 years agoAdd license header release/mercury v2.0.0
Krzysztof Frukacz [Thu, 16 Feb 2017 08:57:29 +0000 (09:57 +0100)]
Add license header

Added license headers

Change-Id: I33969a0331e9b32977307fdcc3280208d5f02ef7
Signed-off-by: Krzysztof Frukacz <krzysztof.frukacz@gigaspaces.com>
Issue-id: VNFSDK-71

8 years agoFix CLI argument parsing
Krzysztof Frukacz [Wed, 1 Feb 2017 12:02:45 +0000 (13:02 +0100)]
Fix CLI argument parsing

Fix argument list passed to argparser

Change-Id: Ib42867a0f9abd6309f5776ac981ee1a0fcdcfd74
Signed-off-by: Krzysztof Frukacz <krzysztof.frukacz@gigaspaces.com>
Issue-id: VNFSDK-70

8 years agoAdd unit tests
Krzysztof Frukacz [Tue, 31 Jan 2017 07:03:29 +0000 (08:03 +0100)]
Add unit tests

Added unit tests with tox configuration

Change-Id: I99a5107689c0df198cdc22e6272176b8c4747896
Signed-off-by: Krzysztof Frukacz <krzysztof.frukacz@gigaspaces.com>
Issue-id: VNFSDK-60

8 years agoFix assembly files for nexus
Krzysztof Frukacz [Sun, 29 Jan 2017 17:21:00 +0000 (18:21 +0100)]
Fix assembly files for nexus

Added requirements.txt to assembly

Change-Id: I9d0fba76e3207417fd99a0c54a79c4f4e51f1043
Signed-off-by: Krzysztof Frukacz <krzysztof.frukacz@gigaspaces.com>
Issue-id: VNFSDK-59

8 years agoChange: Change groupId in pom that fit the wiki
victor.gao [Fri, 3 Feb 2017 02:14:12 +0000 (10:14 +0800)]
Change: Change groupId in pom that fit the wiki

Issue-ID: VNFSDK-2

Change-Id: I26c7d600de5496df36f31c601e5bd074e94d97af
Signed-off-by: victor.gao <victor.gao@huawei.com>
8 years agoAdd CSAR shared library with CLI tool
Krzysztof Frukacz [Sun, 29 Jan 2017 05:31:22 +0000 (06:31 +0100)]
Add CSAR shared library with CLI tool

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>
8 years agoInitial empty repository
Andrew Grimberg [Tue, 17 Jan 2017 15:18:05 +0000 (15:18 +0000)]
Initial empty repository