commit | 53761bf3222a8746420cb9c490bb53dabcb2e521 | [log] [tgz] |
---|---|---|
author | Michal Banka <michal.banka@nokia.com> | Mon Feb 15 13:15:39 2021 +0100 |
committer | Micha? Ba?ka <michal.banka@nokia.com> | Mon Feb 15 13:01:54 2021 +0000 |
tree | c57da677991b33b7354709ffa2e61e780253c431 | |
parent | 41b034a75e7b52c51c60a7704e8fcda0a3999344 [diff] |
Fix groupId Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: I2fc7a09f82c90823949085d7a676f6dd0c061fb5 Issue-ID: DCAEGEN2-2573
This application should partially validate incoming service distributions in SDC. It validates each artifact of type VES_EVENT. Its purpose is to check whether schemaReferences of stndDefined events included in VES_EVENT artifacts are matching the schemas which VES Collector contains.
Connect to lab and expose ports of message-router service by setting spec.type to NodePort.
Add to /etc/hosts new entry:
<lab_worker_node_ip> sdc-be.onap
Get exposed port of 3904 internal port of message-router.
Set up connection configuration in environment.config file.
Local port forwarding is required to set up proper connection from local environment to message-router on the lab.
Run this to enable port-forwarding (CTRL+C to end):
make port-forwarding
Currently, there are two common ways to run application, both described below.
Right click on Main class, then Run or Debug button.
Run:
make all
Correctly connected to lab application should print logs:
distribution client initialized successfuly
and
distribution client started successfuly
After preparing environment, starting ves-openapi-manager and successful connection to lab, application will listen for service distributions taking place in SDC.
When distribution takes place, ves-openapi-manager downloads each VES_EVENT artifact to validate its stndDefined events.
Results of validation are visible in two places:
There are at least two ways to build docker image.
Using makefile:
make build docker
Direct creation with mvn:
mvn clean package docker:build
Image will be named: onap/org.onap.dcaegen2.platform.ves-openapi-manager