Changed the code to not log user-controlled data.

Issue-ID: VNFSDK-834

Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: Ic4c1f0795750e9321c89db5170d86fa4166f41df
3 files changed
tree: 2d7d7539d3ece262c96e5ffb870cf455fee0876a
  1. releases/
  2. vnfmarket/
  3. vnfmarket-be/
  4. vtp/
  5. .gitattributes
  6. .gitignore
  7. .gitreview
  8. Changelog.md
  9. Dockerfile_header_arm64
  10. INFO.yaml
  11. LICENSE.txt
  12. Makefile
  13. pom.xml
  14. README.md
  15. version.properties
README.md

comment: # (Licensed under the Apache License, Version 2.0 (the "License") comment: # (# you may not use this file except in compliance with the License.) comment: # (# You may obtain a copy of the License at) comment: # (#) comment: # (# http://www.apache.org/licenses/LICENSE-2.0) comment: # (#) comment: # (# Unless required by applicable law or agreed to in writing, software) comment: # (# distributed under the License is distributed on an "AS IS" BASIS,) comment: # (# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.) comment: # (# See the License for the specific language governing permissions and) comment: # (# limitations under the License.)

VNFSDK Marketplace

VNFSDK marketplace provides

  1. Marketplace portal - operator uses this for managing the VNF packages
  2. VNF package repository - Backend repo for persisting the VNF packages
  3. 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