CSAR Compliance check for SOL004 and SOL001
ONAP enabled the required compliance check by following VNFREQS and reports the non-compliant entries as errors.
When VNF Test Platform (VTP) is deployed, by default this testing is enabled with test case name as below
scenario: onap-vtp
testsuite: validation
testcase: csar-validate
And every VNFREQS is modeled as separate test case with name csar-validate-rxxxxx, where xxxxx represents the VNFREQS.
Active VNF requirements
Active PNF requirements
OCLIP additional parameters in Dublin
To run validation of PNF csar additional –pnf parameter must be used.
oclip –product onap-vtp csar-validate –pnf –csar <path to pnf.csar or package.zip>
Package zip structure
Generate certificates
openssl req -nodes -x509 -sha256 -newkey rsa:4096 -keyout “pnf.key” -out “pnf.cert” -days 365 -subj “/C=NL/ST=Zuid Holland/L=Rotterdam/O=Sparkling Network/OU=IT Dept/CN=$(whoami)s Sign Key”
Sign csar file with the private key
openssl dgst -sha256 -sign “pnf.key” -out pnf.sha256.cms pnf.csar
Verify signature
openssl dgst -sha256 -verify <(openssl x509 -in “pnf.cert” -pubkey -noout) -signature pnf.sha256.cms pnf.csar
