commit | c5c005a74157d8436bffd714c316ce257d2700ca | [log] [tgz] |
---|---|---|
author | Michal Banka <michal.banka@nokia.com> | Fri Feb 12 09:36:30 2021 +0100 |
committer | Michal Banka <michal.banka@nokia.com> | Fri Feb 12 09:36:53 2021 +0100 |
tree | e4e57db9ba8d8d3bf4aca7f5d7acb7978ff17a15 | |
parent | 7f7704977116ead5bc3ae8cba4afdf698d08bce7 [diff] |
Remove Sonar code smells - Reorganized test classes to match source code structure - Removed Sonar code smells - Removed unused test dependency from pom.xml Change-Id: If8fda0caf01fe9d91aa7c784a3875a856d87f63d Signed-off-by: Michal Banka <michal.banka@nokia.com> Issue-ID: DCAEGEN2-2575
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: