Step | Expected 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: root@oclip-2:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
246141724b02 nexus3.onap.org:10001/onap/vnfsdk/refrepo:1.3.0 "/service/docker-e..." 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
20bfa4ba1734 nexus3.onap.org:10001/onap/vnfsdk/refrepo/postgres:latest "docker-entrypoint..." 2 days ago Up 2 days 0.0.0.0:5432->5432/tcp postgres root@oclip-2:~# 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. Endpoint for validation API is available |
Open postman application and load VTP_postman_collection.json for VTP validation | Postman is available and collection is loaded |
Fill parameters in postman: - in "file" choose csar/zip file to be validated
- in "execution" in parameters put name of file that will be validated "csar": "file://noETSI-Entry-Manifest or ETSI-Entry-Change-Log.csar",
- in Headers put following value: Content-Type application/x-www-form-urlencoded
- update host end REST endpoint according to VTP from local docker compose or VTP from ONAP instance
![](/download/attachments/58231094/image2019-5-31_12-46-11.png?version=1&modificationDate=1559299572000&api=v2)
| Validation doesn't find violations in valid_all.csar package |
Prepare request and validate csar package valid_all.csar | Validation doesn't find violations in valid_all.csar package |
Prepare request and validate zip package valid_all.zip | Validation doesn't find violations in valid_all.zip package |
Prepare request and validate zip package signed with CMS signed-package-valid-signature.zip | validations should not find any violations |
Prepare request and validate zip package signed with CMS signed-package-invalid-signature.zip | validation should find violations |