Fix aria validation error in import case 83/42383/1 2.0.0-ONAP beijing 2.0.0-ONAP
authorLianhao Lu <lianhao.lu@intel.com>
Fri, 23 Mar 2018 16:04:37 +0000 (00:04 +0800)
committerLianhao Lu <lianhao.lu@intel.com>
Thu, 12 Apr 2018 02:35:13 +0000 (10:35 +0800)
commit1210f741d01f26609b687e6680e5180fb1be5efe
treeb087864f78a67021471fbcb911154d1e0ec400a2
parentcd02d1f9b64957a63ad4b16bac639116975edb22
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>
tests/resources/test_import.csar [new file with mode: 0644]
tests/validator/test_aria_validator.py [new file with mode: 0644]
vnfsdk_pkgtools/validator/aria_validator.py