Table of Contents |
---|
Overview
These test cases cover the commonality between the test data for 5G - PNF Pre-Onboarding & Onboarding and aims to achieve an end to end verification for Pre-Onboarding and Onboarding.
...
To ensure compatibility between the code changes made to SDC and VNF-SDK and to support PNF Pre-Onboarding & Onboarding the same test data vendor csar file, i.e. PNF package, will be used.
Sample packages to be used can be found in the ONAP SDC Gerrit PNFs directory, the corresponding root certificates for the secure signed packages can be found in the certs directory.
Manual Test Cases
Test Case ID | PNF-POB-OB-1
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Test Case Name | Test Pre-Onboarding of Vendor Supplied Package in VNF-SDK | ||||||||||||
Description | Taking a pre-formed sample csar package mimicking a vendor supplied PNF csar which will contain relevant artefacts verify this package against the VNF-SDK CLI tool (R&D approach) | ||||||||||||
Release | Dublin | ||||||||||||
Preconditions | Sample csar package mimicking vendor csar agreed and available Sample secured zip file consisting of the csar package, a signature file and a certificate file mimicking vendor csar agreed and available | ||||||||||||
Testing Steps |
| ||||||||||||
Conclusion (Pass/Fail) | |||||||||||||
Testing Lab | ONAP Lab/standalone linux machine |
...
Test Case ID | PNF-POB-OB-2 | ||||||
---|---|---|---|---|---|---|---|
Test Case Name | Test Onboarding of Vendor Supplied Package in SDC | ||||||
Description | Taking a pre-formed sample csar package mimicking a vendor supplied PNF csar which will contain relevant artefacts verify this package can be onboarded in SDC | ||||||
Release | Dublin | ||||||
Preconditions | Sample csar package mimicking vendor csar agreed and available | ||||||
Testing Steps |
| ||||||
Conclusion (Pass/Fail) | PASS | ||||||
Testing Lab | ONAP Lab/ Local Sanity Test Environment |
Test Case ID | PNF-POB-OB-3 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Test Case Name | Test Pre-Onboarding of Vendor Supplied Package in (offline) VNF Test Platform installed according to https://docs.onap.org/en/latest/submodules/vnfsdk/model.git/docs/files/vnf-test-platform.html | ||||||||||||||||
Description | Taking a pre-formed sample csar package mimicking a vendor supplied PNF csar which will contain relevant artefacts verify this package against the VNF-SDK API | ||||||||||||||||
Release | Dublin | ||||||||||||||||
Preconditions | Sample csar package mimicking vendor csar agreed and available | ||||||||||||||||
Testing Steps |
| ||||||||||||||||
Conclusion (Pass/Fail) | |||||||||||||||||
Testing Lab | ONAP Lab/standalone linux machine |
Automated Test Cases
Test case has bee automated using robot framework. Test Cases are available in robot pod in ONAP system.
In order to execute the run following command at RKE node:
ubuntu@onap-rke-node:~$ oom/kubernetes/robot/ete-k8s.sh onap vnfsdk execscript
Test case definition in testsuite repo
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding allMandatoryEntriesDefinedInTOSCAMeta |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/allMandatoryEntriesDefinedInTOSCAMeta Imports it as csar VSP package to SDC and comapres with list of expected errors. Runs VNFSDK validation and comapres with list of expected errors. Expected failed requirements from VNFSDK [u'r146092', u'r816745', u'r01123'] Expected errors from SDC Onboarding [u'Manifest contains invalid line: 7: #The manifest file shall include a list of all files contained in or referenced from the VNF package with their location'] |
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding non_mano_artifact_sets_is_mandatory |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/non_mano_artifact_sets_is_mandatory Imports it as csar VSP package to SDC and comapres with list of expected errors. Runs VNFSDK validation and comapres with list of expected errors. Expected failed requirements from VNFSDK [u'r146092', u'r01123'] Expected errors from SDC Onboarding [u'Manifest contains invalid line: 7: #The manifest file shall include a list of all files contained in or referenced from the VNF package with their location'] |
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding no_pnfd_release_date_time_error |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/no_pnfd_release_date_time_error Imports it as csar VSP package to SDC and comapres with list of expected errors. Runs VNFSDK validation and comapres with list of expected errors. Expected failed requirements from VNFSDK [u'r57019', u'r01123', u'r816745'] Expected errors from SDC Onboarding [u"Invalid Manifest metadata entry: '#The manifest file shall include a list of all files contained in or referenced from the VNF package with their location'.;\nAt line 6: '#The manifest file shall include a list of all files contained in or referenced from the VNF package with their location'."] |
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding noETSI-Entry-ManifestOrETSI-Entry-Change-Log |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/noETSI-Entry-ManifestOrETSI-Entry-Change-Log Imports it as csar VSP package to SDC and comapres with list of expected errors. Runs VNFSDK validation and comapres with list of expected errors. Expected failed requirements from VNFSDK [u'r293901', u'r01123', u'r130206'] Expected errors from SDC Onboarding [u'Manifest contains invalid line: 7: #The manifest file shall include a list of all files contained in or referenced from the VNF package with their location', u'Manifest contains invalid line: 7: #The manifest file shall include a list of all files contained in or referenced from the VNF package with their location'] |
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding PNFD_missing |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/PNFD_missing Imports it as csar VSP package to SDC and comapres with list of expected errors. Runs VNFSDK validation and comapres with list of expected errors. Expected failed requirements from VNFSDK [u'SOL004', u'r10087', u'r87234', u'r35854', u'r15837', u'r17852', u'r293901', u'r146092', u'r57019', u'r787965', u'r972082', u'r01123', u'r130206', u'r816745'] Expected errors from SDC Onboarding [u'TOSCA.meta file in TOSCA-metadata directory missing entry Created-By'] |
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding test_SDC_and_VNFSDK_API, integrity_check CMS_with_cert |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/test_SDC_and_VNFSDK_API Imports it as csar VSP package to SDC and expects success. Runs VNFSDK validation and and expects success. |
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding test_SDC_and_VNFSDK_API, integrity_check CMS_without_cert |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/test_SDC_and_VNFSDK_API Imports it as csar VSP package to SDC and expects success. Runs VNFSDK validation and and expects success. |
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding test_SDC_and_VNFSDK_API, secured csar - CMS only - sdc valid certificate, integrity_check CMS_without_cert |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/test_SDC_and_VNFSDK_API Next sign with certificate that is imported to SDC onabarding POD using CMS only method (CMS file signs csar, zip contains only csar and cms files ) Imports it as zip VSP package to SDC and expects success. Runs VNFSDK validation and and expects success. |
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding test_SDC_and_VNFSDK_API, secured csar - CMS and CERT - sdc valid certificate, integrity_check CMS_with_cert |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/test_SDC_and_VNFSDK_API Next sign with certificate that is imported to SDC onabarding POD using CMS and CERT method (CMS file signs csar, zip contains csar, certificate and cms files ) Imports it as zip VSP package to SDC and expects success. Runs VNFSDK validation and and expects success. |
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding test_SDC_and_VNFSDK_API, secured csar - CMS only - sdc invalid certificate, integrity_check CMS_without_cert |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/test_SDC_and_VNFSDK_API Next sign with certificate that is not imported to SDC onabarding POD using CMS only method (CMS file signs csar, zip contains only csar and cms files ) Imports it as zip VSP package to SDC and expects error due to issues with certificate validation. Runs VNFSDK validation and and expects success. |
Full Name: | Testsuites.Vnfsdk Validation.Validate Onboarding test_SDC_and_VNFSDK_API, secured csar - CMS and CERT - sdc invalid certificate, integrity_check CMS_with_cert |
---|---|
Documentation: | This test case creates TOSCA csar software package for PNF, based on /var/opt/ONAP/demo/tosca/vnfsdk/test_SDC_and_VNFSDK_API Next sign with certificate that is not imported to SDC onabarding POD using CMS and CERT method (CMS file signs csar, zip contains csar, certificate and cms files ) Imports it as zip VSP package to SDC and expects error due to issues with certificate validation. Runs VNFSDK validation and and expects success |