aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 57c7b2936c1f837c21aaff0ecdb07ef456b3ee4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[comment]: # (# Copyright 2018 Huawei Technologies Co., Ltd.)
[comment]: # (# )
[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>