VNFSDK Marketplace
VNFSDK marketplace provides
- Marketplace portal - operator uses this for managing the VNF packages
- VNF package repository - Backend repo for persisting the VNF packages
- VNF testing platform - Platform for testing VNF for a given ONAP environment.
VNF Test Platform (VTP)
A platform to automate and manage different kind of VNF test cases for given VNF package(s) and provides unified accessibility over CLI, REST API and UI portal for operating the test cases. Also it facilitate to write test cases in different languages like java, shell scripts, python, etc.
- LFN/ONAP wants test platform where VNF packages could be certified using ONAP requirements to drive industry adoption
- Provide an platform where vendor/operator can develop, deploy, run test cases and query the results
- Test cases, test results and VNF should be manageable .i,e with authorization, so only user with given roles is allowed to perform operation like VNF package upload/download, run compliance verification tests, allow only specific VIM for specific users, etc.
- Test results should be persisted and should be available for human analysis later via LFN infrastructure.
- Provides test flow where author make flow across different test cases for a given program like compliance verification and VNFREQS/SOL0004.
- Provide integration with OPNFV dovetail to run test cases across dovetail and ONAP VNFSDK.
- Uses Open CLI Platform (OCLIP) for developing, testing, deploying and executing test cases
- Available as docker container.
- More details at https://onap.readthedocs.io/en/latest/submodules/vnfsdk/model.git/docs/index.html`
Docker image building
mvn clean package -Pdocker -Dpush.docker.image=false
Run refrepo locally
docker run --name refrepo -p 8702:8702 nexus3.onap.org:10003/onap/vnfsdk/refrepo:latest
Refrepo container - important folders
To browse folder you must enter to the refrepo container, so first run docker container locally (see above section) then execute
docker exec -it refrepo bash
In the running container you will find a few important folders: - /service/logs - it contains vnfmarket application logs - /opt/vtp/logs - it contains oclip logs - /opt/vtp/lib - it contains oclip dependencies, such as: validation-csar-XXX.jar file
Verify validation logic
If you want to verify validation logic (validation-csar project), first you need to build validation-csar project, next remove existing validation-csar.jar from /opt/vpt/lib folder in the container and then copy the new validation-csar jar file into the /opt/vpt/lib folder in the container and restart this container.
1. docker exec -it refrepo bash
2. Inside the container: rm /opt/vtp/lib/ validation-csar-XXX.jar
3. docker cp validation-csar.jar refrepo:/opt/vtp/lib
4. docker restart refrepo
VNF Marketplace UI
VNF Marketplace UI is available at http://127.0.0.1:8702/onapui/vnfmarket