Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

Test Case ID
PNF-POB-OB-2
Test Case NameTest Onboarding of Vendor Supplied Package in SDC
DescriptionTaking 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
ReleaseDublin
PreconditionsSample csar package mimicking vendor csar agreed and available
Testing Steps


StepExpected Result

Using csar package as test data execute test case as per 5G - PNF Onboarding Test Cases and Status#5G-PNFOnboardingTestCasesandStatus-PNF-OB-1

Sample vendor csar package is onboarded and available in SDC catalog




Conclusion (Pass/Fail)PASS
Testing LabONAP Lab/ Local Sanity Test Environment


Test Case ID
PNF-POB-OB-3 
Test Case NameTest 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
DescriptionTaking 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
API
ReleaseDublin
Preconditions

Sample csar package mimicking vendor csar agreed and available

Testing Steps


StepExpected Result

Install VNF Testing platform (VTP) on Linux machine with Ubuntu 18.04 according to instruction. https://docs.onap.org/en/latest/submodules/vnfsdk/model.git/docs/files/vnf-test-platform.html

export NEXUS_DOCKER_REPO=nexus3.onap.org:10001

docker login $NEXUS_DOCKER_REPO -u docker -p docker

export REFREPO_TAG=1.3.0

export POSTGRES_TAG=latest

export MTU=1450

wget https://raw.githubusercontent.com/onap/vnfsdk-refrepo/master/vnfmarket-be/deployment/install/docker-compose.yml

docker-compose up -d

run docker ps and following entries would be reported:

Code Block
root@mrkanag:~# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4d42ef0bc1b3 nexus3.onap.org:10001/onap/vnfsdk/refrepo:1.3.0 "/service/docker-ent…" 2 days ago Up 2 days 0.0.0.0:8000->8000/tcp, 0.0.0.0:8702-8703->8702-8703/tcp, 0.0.0.0:50051->50051/tcp refrepo 25a86d9b0e81 nexus3.onap.org:10001/onap/vnfsdk/refrepo/postgres:latest "docker-entrypoint.s…" 2 days ago Up 2 days 0.0.0.0:5432->5432/tcp 
REST Endpoint for VTP validation (from local docker compose)
http://<local_docker_host>:8702/onapapi/vnfsdk-marketplace/v1/vtp/executions?requestId=<some_request_id>
REST Endpoint for VTP validation (from ONAP instance)
http://<one_of_ONAP_k8s_hosts>:30297/onapapi/vnfsdk-marketplace/v1/vtp/executions?requestId=<some_request_id>

VTP is up and running

Copy csar package at linux machine with VTP. valid_all.csar


Csar file is present on linux machine.

Validate csar package using VTP tool by running command:

oclip --product onap-vtp csar-validate --pnf --csar valid_all.csar

Validation doesn't find violations in valid_all.csar package


Conclusion (Pass/Fail)
Testing LabONAP Lab/standalone linux machine