dcaegen2/collectors/hv-ves.git
5 years agoClean up repository 37/59337/1
Jakub Dudycz [Tue, 7 Aug 2018 07:32:43 +0000 (09:32 +0200)]
Clean up repository

There are some leftover from gitlab that should be removed from/updated in official repo.

Change-Id: I9e47321433ed2f744135b7fb85f140f381fe84e1
Issue-ID: DCAEGEN2-690
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
5 years agoCorrection of version.properties typo 27/59327/1
kjaniak [Tue, 7 Aug 2018 05:46:11 +0000 (07:46 +0200)]
Correction of version.properties typo

Change-Id: Ib321f24ffc54b6dca321cc3a5929c7bdaebc790a
Issue-ID: DCAEGEN2-683
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
5 years agoAdd INFO.yaml file 67/57767/3
Jessica Wagantall [Thu, 26 Jul 2018 21:08:39 +0000 (14:08 -0700)]
Add INFO.yaml file

Add INFO.yaml to list:
- Project description
- Properties
- PTL information
- Meeting information
- Committer information

Change-Id: I1180a4d0840ef7b5f6f5f684ed2bf6d531e565bf
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
5 years agoAdd of version.properties file 07/59207/1
kjaniak [Mon, 6 Aug 2018 12:55:16 +0000 (14:55 +0200)]
Add of version.properties file

Change-Id: Id6e282d8865a425bc1a093d6a495cd4fabe3d98f
Issue-ID: DCAEGEN2-683
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
5 years agoUpgrade to Kotlin 1.2.60 85/59185/1
Jakub Dudycz [Mon, 6 Aug 2018 11:56:40 +0000 (13:56 +0200)]
Upgrade to Kotlin 1.2.60

Change-Id: I089c63edd1859c6941f0791f1cf3a09526b6d028
Issue-ID: DCAEGEN2-660
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
5 years agoDisable proxy when building Docker images 11/58911/1
Piotr Jaszczyk [Fri, 3 Aug 2018 10:07:28 +0000 (12:07 +0200)]
Disable proxy when building Docker images

Change-Id: I72d5c511a90fd2d357227aa94b968cc63bd4ca68
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-653

5 years agoRe-enable docker build 07/58907/1
Piotr Jaszczyk [Fri, 3 Aug 2018 09:50:23 +0000 (11:50 +0200)]
Re-enable docker build

* re-enable after seed code temporary workaround
* move docker build from package to deploy phase

Change-Id: Ic338247590b019c90cf9241075a255bfaff28c5b
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-653

5 years agoRemove default consul configuration 97/58897/1
Jakub Dudycz [Tue, 31 Jul 2018 12:49:35 +0000 (14:49 +0200)]
Remove default consul configuration

Default consul configuration is not needed in real life use case
and it doesnt even bring anything useful in our test environment,
since it's immediately overriden.

Tasks:
- remove default consul configuration
- make "config-url" argument required

Closes ONAP-727

Change-Id: I4a01cebfc6b2918fa3aa6020504def60572b09da
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoExtract test-utils module 83/58883/1
fkrzywka [Tue, 31 Jul 2018 12:26:09 +0000 (14:26 +0200)]
Extract test-utils module

- removed duplicate code that was creating VesMessages
and similiar objects
- removed duplicate code in command line parsing tests
- made minor refactorings to avoid passing unnecessary params
and to be as verbose as possible in tests

Closes ONAP-699

Change-Id: I2607f1f775054ae1c5f275c231895f838b415371
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoMerge "Move MessageParametersParser"
Przemyslaw Wasala [Fri, 3 Aug 2018 08:59:40 +0000 (08:59 +0000)]
Merge "Move MessageParametersParser"

5 years agoMerge "Fix NPE when getting Consul configuration"
Przemyslaw Wasala [Fri, 3 Aug 2018 08:58:49 +0000 (08:58 +0000)]
Merge "Fix NPE when getting Consul configuration"

5 years agoMove MessageParametersParser 79/58879/1
fkrzywka [Tue, 31 Jul 2018 12:22:59 +0000 (14:22 +0200)]
Move MessageParametersParser

To avoid dependency of utilities module on modules other than domain

Change-Id: I90ef8640a86501315d84848118d3e748aafd095c
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoFix NPE when getting Consul configuration 77/58877/1
Piotr Jaszczyk [Tue, 31 Jul 2018 07:28:29 +0000 (09:28 +0200)]
Fix NPE when getting Consul configuration

No initial value for AtomicReference was provided hence we had a little
race condition.

Retry when consul returns error.

Change-Id: Ie38ca7fbf445123e98ee94703eba501bb5233fab
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoUse proxy while publishing docker images on CI 75/58875/2
fkrzywka [Tue, 31 Jul 2018 07:31:05 +0000 (09:31 +0200)]
Use proxy while publishing docker images on CI

Also fix gitlab-ci syntax

Change-Id: I5e5e1db3888f976640bacc161d703cc6be3ab613
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoDefine simple healthchecks for simulators 71/58871/1
fkrzywka [Mon, 30 Jul 2018 10:55:03 +0000 (12:55 +0200)]
Define simple healthchecks for simulators

- currently containers are healthy if they have successfully started
their Http servers thus simple endpoint at /healthcheck is sufficient
- to enable docker healthcheck we need to add `curl` to docker images
- http_proxy needs to be provided for docker to be able to build images
behind proxy

Closes ONAP-695

Change-Id: I02f0b8cc2732713b5307dbc34ba604d8185b74fc
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoDCAE APP simulator rework 69/58869/1
Jakub Dudycz [Thu, 26 Jul 2018 09:49:45 +0000 (11:49 +0200)]
DCAE APP simulator rework

- Extract message parameters parsing logic to standalone class in utils
- Make DCAE APP simulator store whole received messages history
- Add validation endpoint
- Add new messege type: FIXED_PAYLOAD

Closes ONAP-686

Change-Id: I865804716ad5e46a7503a8eee70cfe9ac75a6c1e
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoPass CommonEventHeader to XNF simulator api 63/58863/1
Jakub Dudycz [Wed, 25 Jul 2018 14:13:28 +0000 (16:13 +0200)]
Pass CommonEventHeader to XNF simulator api

This change makes XNF simulator more configurable and
allows to validate more message parameters in robot integration tests

Closes ONAP-689

Change-Id: Ic0a10f1e1cdd84ac415c00050b4cca1ac496c56b
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoEnable UNDEFINED option in commonHeader GPB schema 61/58861/1
kjaniak [Wed, 25 Jul 2018 12:02:27 +0000 (14:02 +0200)]
Enable UNDEFINED option in commonHeader GPB schema

Closes ONAP-655

Change-Id: I6fc830d2b8c7bdd726f306a6fbf7e979f39e03f0
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoRework argument configuration 59/58859/1
Jakub Dudycz [Tue, 24 Jul 2018 09:48:12 +0000 (11:48 +0200)]
Rework argument configuration

- Unify names of argument configuration classes in
  DCAE APP simulator, XNF simualtor and VES HV Collector
- Make some of the arguments required
- Adjust docker-compose and Dockerfiles
- Adjust test cases and error handling

Closes ONAP-683

Change-Id: I4a9d43791cced9dcb52eb83e2f7956462e8712d9
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoConfigure xnf simulator api listen port 49/58849/1
Jakub Dudycz [Mon, 23 Jul 2018 12:51:00 +0000 (14:51 +0200)]
Configure xnf simulator api listen port

Closes ONAP-664
Closes ONAP-647

Change-Id: I8d1e57c0c66f1968925660fe47fa96a2a634c039
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoFix consul request timeout issue 45/58845/2
Jakub Dudycz [Fri, 20 Jul 2018 14:37:02 +0000 (16:37 +0200)]
Fix consul request timeout issue

Fix timeout issue when using consul blocking query calls
by switching to standard requests peformed in given interval

Closes ONAP-628

Change-Id: Ifaf7ddfa27045015a7a90c178e0d6d38955c0c58
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoSupport scenarios for continuous streaming test 43/58843/1
Jakub Dudycz [Wed, 18 Jul 2018 12:33:10 +0000 (14:33 +0200)]
Support scenarios for continuous streaming test

Added support for below scenarios
-too big payloads
-invalid wire frames
-invalid GPB data
-unsupported domains

Changed input json for xnf simulator endpoint

Closes ONAP-500

Change-Id: I19e84a76cef501e274ea8152f3c33c95dddcaac9
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoAdd command line option to disable SSL/TLS 41/58841/2
kjaniak [Tue, 17 Jul 2018 09:50:10 +0000 (11:50 +0200)]
Add command line option to disable SSL/TLS

Closes ONAP-508

Change-Id: If6c3935ede7b00dea9b36747c6cd1422c1c8d330
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoUse Try/Option monad when decoding protobuf 39/58839/1
fkrzywka [Tue, 17 Jul 2018 05:54:58 +0000 (07:54 +0200)]
Use Try/Option monad when decoding protobuf

Closes ONAP-143

Change-Id: I33cb2d24cd5962318a6f405096db298bbdbab963
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoMerge "Include msg generator module in coverage report"
Przemyslaw Wasala [Fri, 3 Aug 2018 05:17:40 +0000 (05:17 +0000)]
Merge "Include msg generator module in coverage report"

5 years agoInclude msg generator module in coverage report 37/58837/1
fkrzywka [Mon, 16 Jul 2018 06:17:29 +0000 (08:17 +0200)]
Include msg generator module in coverage report

* Reordered alphabetically modules in main pom file
* Removed unused imports
* Corrected visibility for fields/methods
* Fix typos in tests

Change-Id: I35c515b3844bc8517cc6ffb0c6557596505536c9
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoRemove unused method 35/58835/1
fkrzywka [Fri, 13 Jul 2018 11:10:21 +0000 (13:10 +0200)]
Remove unused method

Change-Id: I462e78f0bad9aba2e82d2766d748608b6231c839
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoAdd API endpoint for DCAE App Sim reconfiguration 37/58737/1
fkrzywka [Thu, 12 Jul 2018 12:46:58 +0000 (14:46 +0200)]
Add API endpoint for DCAE App Sim reconfiguration

Closes ONAP-547

Change-Id: I26b7d5d61eb984d58600a612cd8d3e4dd7be05c5
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoExtract message generator module 25/58725/1
kjaniak [Thu, 12 Jul 2018 08:57:58 +0000 (10:57 +0200)]
Extract message generator module

Closes ONAP-501

Change-Id: Ia5dc5f67e18c302abbeac7e0373cef479f4befb8
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoUse MessageValidator in VesMessage class 23/58723/1
Jakub Dudycz [Wed, 11 Jul 2018 10:24:15 +0000 (12:24 +0200)]
Use MessageValidator in VesMessage class

Closes ONAP-493
Change-Id: I15b5f0f1052865aa29ffa103bef2368bd94021e8
Signed-off-by: Jakub Dudycz <jdudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoUse Flux.transform in VesHvCollector 09/58709/1
Jakub Dudycz [Tue, 10 Jul 2018 10:29:32 +0000 (12:29 +0200)]
Use Flux.transform in VesHvCollector

Goal: split the stream into logical parts

Closes ONAP-493
Change-Id: I87aa817a18674fad265df81b6a0b4a8f0c46b866
Signed-off-by: Jakub Dudycz <jdudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoAdd byte-buffer handling assertions when decoding 93/58693/1
fkrzywka [Wed, 4 Jul 2018 12:46:57 +0000 (14:46 +0200)]
Add byte-buffer handling assertions when decoding

ByteBuffer reader index should be reset in case of failed decoding
of wire frame, as parsing might be retried when more bytes arrive

Change-Id: I6dcb5c94c8cffba969f572fca8bbb728ea9500bd
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoEnhance wire protocol 89/58689/1
fkrzywka [Tue, 3 Jul 2018 08:14:38 +0000 (10:14 +0200)]
Enhance wire protocol

Handle new wire frame message type which should allow clients to
indicate that all data has been sent to collector

Change xNF Simulator to send end-of-transmission message
after sending all messages

Close ves-hv-collector stream after encountering EOT message

Remove duplicated file in project

Closes ONAP-391

Change-Id: Idb6afc41d4bb0220a29df10c2aecfd76acd3ad16
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoRename hv-collector-client-simulator 77/58677/1
Jakub Dudycz [Mon, 9 Jul 2018 06:06:01 +0000 (08:06 +0200)]
Rename hv-collector-client-simulator

New name: hv-collector-xnf-simulator

Closes ONAP-492

Change-Id: I161dda0d01e90bfe35e5e2d575ec9e81cc8bf3c3
Signed-off-by: Jakub Dudycz <jdudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoFix consul configuration delay 67/58667/1
Jakub Dudycz [Mon, 9 Jul 2018 11:09:56 +0000 (13:09 +0200)]
Fix consul configuration delay

Delay configuration received from consul instead of default one

Change-Id: I09ec1a1e0d4a8334f83c054e0891b55ff8d049db
Issue-Id: ONAP-519
Signed-off-by: jdudycz@nokia.com
Issue-ID: DCAEGEN2-601

5 years agoImplement blocking consul calls 63/58663/1
Jakub Dudycz [Thu, 5 Jul 2018 12:35:43 +0000 (14:35 +0200)]
Implement blocking consul calls

Replaced interval based requesting for consul configuration with blocking query calls

Closes ONAP-80

Change-Id: If70365bae9fde513d99b047209d085122a5df0dd
Signed-off-by: Jakub Dudycz <jdudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoComponent tests for consul configuration updates 61/58661/1
Jakub Dudycz [Mon, 2 Jul 2018 13:52:08 +0000 (15:52 +0200)]
Component tests for consul configuration updates

Added few component test cases for updating configuration

Closes ONAP-464

Change-Id: Id8dba1d1cf4bf641a65e27d2a257fb5c26ee2bbc
Signed-off-by: Jakub Dudycz <jdudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoUse IO monad when starting servers 59/58659/1
Piotr Jaszczyk [Wed, 4 Jul 2018 11:16:21 +0000 (13:16 +0200)]
Use IO monad when starting servers

Change-Id: I3e97161535fc721dda6109c4cb5f23a1db0afde3
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoMerge "Enhancement of routing test"
Przemyslaw Wasala [Thu, 2 Aug 2018 10:00:42 +0000 (10:00 +0000)]
Merge "Enhancement of routing test"

5 years agoEnhancement of routing test 53/58653/1
kjaniak [Thu, 5 Jul 2018 06:13:59 +0000 (08:13 +0200)]
Enhancement of routing test

Change-Id: I432c09a219928d1a89a0c619db0e8cc3104af0ec
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoBump Kotlin and Reactor versions 51/58651/1
Piotr Jaszczyk [Thu, 5 Jul 2018 08:06:46 +0000 (10:06 +0200)]
Bump Kotlin and Reactor versions

Change-Id: I949e1f5ac07be03a1537f07a0b5281171e43c09b
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoInclude "new" modules in coverage report 49/58649/1
Piotr Jaszczyk [Fri, 29 Jun 2018 12:57:02 +0000 (14:57 +0200)]
Include "new" modules in coverage report

Change-Id: I8735b9a0c7b9e7d623e071098ee00d91d8a69fbf
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoMerge "Reject messages with payload size > 1MiB"
Przemyslaw Wasala [Thu, 2 Aug 2018 09:29:12 +0000 (09:29 +0000)]
Merge "Reject messages with payload size > 1MiB"

5 years agoReject messages with payload size > 1MiB 41/58641/1
Jakub Dudycz [Thu, 28 Jun 2018 10:41:29 +0000 (12:41 +0200)]
Reject messages with payload size > 1MiB

- Update validation in WireFrameDecoder class
- Write unit and component tests for that case

Closes ONAP-340

Change-Id: I68cb608fd76118719b12a83de1ef930160f8a162
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoAdd links to IT results to glpages 39/58639/1
Piotr Jaszczyk [Fri, 29 Jun 2018 10:45:19 +0000 (12:45 +0200)]
Add links to IT results to glpages

Change-Id: I2a2ccc5f826a2d91c75fd8ea81f92df92dcb04d3
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoUse Either instead of exceptions in frame decoder 33/58633/1
Piotr Jaszczyk [Thu, 28 Jun 2018 12:42:05 +0000 (14:42 +0200)]
Use Either instead of exceptions in frame decoder

Goals:
* Make code cleaner (in a FP way)
* Avoid costly exception throw each time we wait for the rest of the
frame (collecting stack traces is costly and we do not need them
anyway)

Closes ONAP-437
Change-Id: I40341d3c2cb85f3ff581d89167245cb009dbb070
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoUse generator to simplify the WireFrame decoding 27/58627/1
Piotr Jaszczyk [Thu, 28 Jun 2018 08:09:24 +0000 (10:09 +0200)]
Use generator to simplify the WireFrame decoding

Performance tests have proven that manual creation of the Flux doesn't
give us any performance benefits. On the other side it is complicated
and error prone.

Closes ONAP-438

Change-Id: I45912f91a52cbc84322775f7bae6d73afda079b8
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoWrite performance tests 23/58623/1
Piotr Jaszczyk [Wed, 27 Jun 2018 10:30:56 +0000 (12:30 +0200)]
Write performance tests

Closes ONAP-434
Change-Id: I1139848f32ac19a4d0a0fd595f4b07c10cd83db0
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoChange Consul configuration update policy 13/58613/1
Jakub Dudycz [Fri, 15 Jun 2018 14:09:41 +0000 (16:09 +0200)]
Change Consul configuration update policy

- At startup default config is applied
- Configuration is updated in intervals given at VES-HV
service startup to allow dynamic changes
- Included consul service startup in docker-compose file
- VES-HV now exits when fails to acquire confguration from consul

Closes ONAP-229

Change-Id: I896cfd177fa45381f9822278c2dffc113dd3df72
Signed-off-by: jakub.dudycz@nokia.com
Issue-ID: DCAEGEN2-601

5 years agoFixing docker push form fabric8io mvn plugin 11/58611/1
Piotr Jaszczyk [Mon, 25 Jun 2018 07:59:01 +0000 (09:59 +0200)]
Fixing docker push form fabric8io mvn plugin

Change-Id: I40ea95c162067f9d099e578fb236c5877562041b
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoInclude payload content type in wire frame 09/58609/1
Piotr Jaszczyk [Tue, 19 Jun 2018 08:27:53 +0000 (10:27 +0200)]
Include payload content type in wire frame

Closes ONAP-404
Change-Id: I6adfb542ffdafad678e7bc6e062d3d59c250b39e
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoVarious improvements 99/58599/2
Piotr Jaszczyk [Thu, 14 Jun 2018 07:48:46 +0000 (09:48 +0200)]
Various improvements

* Kotlin upgrade
* Monad usage on APIs
* Idle timeout
* Simulator enhancements

Closes ONAP-390

Change-Id: I3c00fcfe38c722caf661ddaad428cf089eeefcaa
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoVESEvent payload generation introduction 97/58597/1
kjaniak [Thu, 14 Jun 2018 11:10:53 +0000 (13:10 +0200)]
VESEvent payload generation introduction

Change-Id: Ida15b9739d26b5db2f69a5296876f20ea83de761
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoAdd monitoring support by means of micrometer.io 95/58595/2
Piotr Jaszczyk [Wed, 13 Jun 2018 13:45:00 +0000 (15:45 +0200)]
Add monitoring support by means of micrometer.io

Closes ONAP-345

Change-Id: I58c145b1d37a6b32fbe5b157723c152eb571a2dd
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoImplemented rest server in client simulator 87/58587/2
Jakub Dudycz [Mon, 11 Jun 2018 14:54:47 +0000 (16:54 +0200)]
Implemented rest server in client simulator

Change-Id: I212b79fe2a0272f340c5ca889beff60b469f7f24
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoStart DCAE App Simulator from command line 85/58585/1
fkrzywka [Wed, 13 Jun 2018 13:02:40 +0000 (15:02 +0200)]
Start DCAE App Simulator from command line

Closes ONAP-377

Change-Id: Iab959835dfafcfcfaf1322ead4ea83eff1e9284c
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoMerge "Dockerize DCAE APP simulator"
Przemyslaw Wasala [Thu, 2 Aug 2018 06:26:50 +0000 (06:26 +0000)]
Merge "Dockerize DCAE APP simulator"

5 years agoDockerize DCAE APP simulator 81/58581/1
Piotr Jaszczyk [Tue, 12 Jun 2018 12:19:10 +0000 (14:19 +0200)]
Dockerize DCAE APP simulator

Closes ONAP-265
Closes ONAP-267

Change-Id: I394476cf7ba3851d663a2995dc7fe591dae5be41
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoRefactor ArgBasedConfiguration 79/58579/1
fkrzywka [Wed, 13 Jun 2018 08:02:03 +0000 (10:02 +0200)]
Refactor ArgBasedConfiguration

Extracted duplicate code from Client/Server ArgBasedConfiguration, as it
probably would be used third time in future work

Change-Id: I581abbcd5f1dd4a1a049e1d28e68a7e4d82a84f8
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoCheck license notes during build 73/58573/1
Piotr Jaszczyk [Wed, 13 Jun 2018 07:56:17 +0000 (09:56 +0200)]
Check license notes during build

I wanted to use oparent as parent pom but unfortunately jacoco plugin is
configured differently there. Currently oparent provides support for
jacoco (static code analysis), checkstyle (licenses + code style) and
swagger api documentation.

In ves-hv:
* jacoco is preconfigured for kotlin (but currently not very usable as
it's not ready for kotlin-generated code ie. displayed coverage is
well under the actual coverage; there is an ongoing effort in jacoco
and kotlin communities to fix that).
* checkstyle - this task adds support for checking licenses using
oparent:checkstyle artifact. Static code analysis is already done
using Detekt.
* swagger - ves-hv is not exposing REST API so there is no need for
this.

Closes ONAP-364
Change-Id: If2727a97d826dcab473b2e1e80171d8124ae52d4
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoBasic Ratpack API in DCAE APP Simulator 71/58571/1
Piotr Jaszczyk [Tue, 12 Jun 2018 10:16:19 +0000 (12:16 +0200)]
Basic Ratpack API in DCAE APP Simulator

Closes ONAP-266

Change-Id: Iaa000e976fcdc4274aa88ce7d0a6cd5866987680
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoDcae simulator module addition 67/58567/1
kjaniak [Mon, 11 Jun 2018 10:59:22 +0000 (12:59 +0200)]
Dcae simulator module addition

Change-Id: I4c0be20f414f356f7c6a28fcdc330b4b8aca5eb9
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoImplement Kafka Sink 63/58563/1
Piotr Jaszczyk [Fri, 8 Jun 2018 14:29:31 +0000 (16:29 +0200)]
Implement Kafka Sink

Closes ONAP-146

Change-Id: I119a8abe70a9042f65a43909e5aa2fbed439e26f
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoFix TCP stream framing issue 09/58409/1
Piotr Jaszczyk [Thu, 7 Jun 2018 09:52:16 +0000 (11:52 +0200)]
Fix TCP stream framing issue

Because of the nature of TCP protocol we receive consecutive IO buffer
snapshots - not separate messages. That means that we need to join
incomming buffers and then split it into separate WireFrames.

Closes ONAP-312
Change-Id: I84ba0ec58a41ff9026f2fca24d2b15f3adcf0a19
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoCleanup simulator dependencies and packages 99/58399/1
Piotr Jaszczyk [Fri, 8 Jun 2018 12:55:25 +0000 (14:55 +0200)]
Cleanup simulator dependencies and packages

Closes ONAP-307

Change-Id: Ifdaa9f054470386c01865d44c78a3aecf02ce956
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoAdd SSL/TLS to client simulator 93/58393/1
Piotr Jaszczyk [Thu, 7 Jun 2018 06:46:51 +0000 (08:46 +0200)]
Add SSL/TLS to client simulator

Change-Id: Iedebd222be08931b95e52a84c8c4d9c0df9e1da1
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoDockerized simulator 89/58389/2
Jakub Dudycz [Fri, 8 Jun 2018 10:57:13 +0000 (12:57 +0200)]
Dockerized simulator

Change-Id: Idb8c1d44f76c62dd83989c60670ad2ea49991d35
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoPush docker images to a registry 87/58387/1
Piotr Jaszczyk [Wed, 6 Jun 2018 11:18:05 +0000 (13:18 +0200)]
Push docker images to a registry

Change-Id: Ife1d98af977a439ef7196caa2cf8fb0968e65fe3
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoDuplicate code removal 83/58383/1
fkrzywka [Tue, 5 Jun 2018 12:51:36 +0000 (14:51 +0200)]
Duplicate code removal

Change-Id: Iee19bce0ba18746d0570337c5317ccdd63552d56
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoExtract domain module 79/58379/2
fkrzywka [Tue, 5 Jun 2018 10:55:06 +0000 (12:55 +0200)]
Extract domain module

WireFrame extracted to domain module
Domain package name in collector-core changed to avoid collision
Merged Protobuf module with new domain module

Closes ONAP-253.

Change-Id: Ie7ac0bb877eae018a7520b4f3ceebe9fd51dbf65
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoMissing unit tests for argument parser 77/58377/1
Piotr Jaszczyk [Wed, 6 Jun 2018 09:47:54 +0000 (11:47 +0200)]
Missing unit tests for argument parser

Change-Id: Ib093b41f60efc089f47bb636e659c91ca385a437
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoCopyright notice correction 73/58373/1
fkrzywka [Wed, 6 Jun 2018 08:43:53 +0000 (10:43 +0200)]
Copyright notice correction

Change-Id: I8a8ca4cb4c1cc0d437edfe4f43f3063f135161c3
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoInvalid class name corrected 67/58367/2
fkrzywka [Wed, 6 Jun 2018 08:34:52 +0000 (10:34 +0200)]
Invalid class name corrected

Licenses added to client simulator files

Change-Id: I07afa358daf25cb36c1ed1523f17b5bb2fad40b5
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoUse SSL for encrypting the connection 63/58363/3
Piotr Jaszczyk [Tue, 29 May 2018 11:35:11 +0000 (13:35 +0200)]
Use SSL for encrypting the connection

Netty's OpenSSL bindings are used

Closes ONAP-179

Change-Id: I8249fbaaed1dd869b733db04a27cebf53962c80c
Issue-ID: DCAEGEN2-601
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
5 years agoMerge "Implemented simple tcp client"
Przemyslaw Wasala [Wed, 1 Aug 2018 07:26:39 +0000 (07:26 +0000)]
Merge "Implemented simple tcp client"

5 years agoImplemented simple tcp client 59/58359/1
Jakub Dudycz [Tue, 29 May 2018 12:46:27 +0000 (14:46 +0200)]
Implemented simple tcp client

Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Change-Id: Iaf913186b93eb7eebfb6f44c19d489a64ed60c2b
Issue-ID: DCAEGEN2-601

5 years agoHV-Collector services in docker-compose 57/58357/1
fkrzywka [Tue, 5 Jun 2018 10:17:31 +0000 (12:17 +0200)]
HV-Collector services in docker-compose

Docker-compose in root directory to launch all services
Simulator dockerfile addition, to be implemented later
Services dependency

Closes ONAP-228.

Change-Id: I42c874335e76494693ec149fb7d1a305d8288584
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoMerge "Fix wire protocol decoder refCnt issue"
Przemyslaw Wasala [Wed, 1 Aug 2018 07:15:12 +0000 (07:15 +0000)]
Merge "Fix wire protocol decoder refCnt issue"

5 years agoMerge "Docker image metadata"
Przemyslaw Wasala [Wed, 1 Aug 2018 07:13:06 +0000 (07:13 +0000)]
Merge "Docker image metadata"

5 years agoFix wire protocol decoder refCnt issue 55/58355/1
Piotr Jaszczyk [Mon, 4 Jun 2018 11:51:29 +0000 (13:51 +0200)]
Fix wire protocol decoder refCnt issue

We should use retain + slice because every reactor-netty operator
automatically releases the buffer.

Change-Id: Ie0282e70fadb56d56fc410a08e036fb0ca10584c
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoDocker image metadata 53/58353/1
fkrzywka [Fri, 1 Jun 2018 12:49:42 +0000 (14:49 +0200)]
Docker image metadata

Change-Id: I6769b8c9bb9c5f5f2b839ab43d1cd347f43cd32a
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoDocker compose for kafka and zookeeper 51/58351/1
kjaniak [Fri, 1 Jun 2018 12:26:28 +0000 (14:26 +0200)]
Docker compose for kafka and zookeeper

Change-Id: I40622783a49b6ab24e0761229f6f875b3ce05813
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoDocker image creation 37/58337/2
fkrzywka [Fri, 1 Jun 2018 10:45:22 +0000 (12:45 +0200)]
Docker image creation

Maven integration with docker build

Closes ONAP-226

Change-Id: I115ff9c13e1bf06a7594a174c7703bfea42f3641
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601

5 years agoSimulator module addition 33/58333/1
kjaniak [Tue, 29 May 2018 11:32:14 +0000 (13:32 +0200)]
Simulator module addition

Change-Id: I8f6e9737954a8769a25450ed22a0285cadfcf164
Issue-ID: DCAEGEN2-601
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
5 years agoHV VES Collector seed code 43/57643/3
Piotr Jaszczyk [Thu, 26 Apr 2018 07:17:09 +0000 (09:17 +0200)]
HV VES Collector seed code

Contains squashed commits up to 11fe6b63 (2018-05-30). The whole
contains a basic project structure. We are trying to put rest of the
commits one by one so we do not loose the history.

Bellow there are messages of the single commits in this squashed bulk:

Basic project setup
Create base maven project with Gitlab CI configuration.
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Merging guildeline
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Add remote branch delete command
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Sample runtime in Kotlin - PoC
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Setup project internal architecture
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Message routing
Determine target topic and partition by VES Common Header.
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Parse GPB message header
fkrzywka <filip.krzywka@nokia.com>

Set listen port based on command line args
Use Apache Commons CLI to parse cmd line args.
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Drop invalid GPB messages
Instead of propagating error and closing stream just drop the message
and proceed. Final handling logic may include closing the connection or
sending some message depending on the specification.
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Add Apache license file
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Convert to maven multi-module project
fkrzywka <filip.krzywka@nokia.com>

Component tests with current GPB schema
* Using v5 draft protobuf definition
* Code reorganized to so component boundaries are more visible
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Thin logging facade over slf4j
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Introduce code analysis tools
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Implemented reading configuration from consul

Ves Common Header validation added (required parameters existance check)

Micro benchmark for direct vs on-heap NIO buffers
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Decode wire protocol and fix (most?) memory leaks
Proposed wire protocol is just a suggestion and will (should) change
in the future.
Netty's ByteBuf is a reference-counted wrapper over a memory chunk. It
is crucial to free unused buffers by means of release() method.
The general rule regarding memory management was suggested. Let's put
all memory-cleanup logic in main VesHvCollector class so other classes
could focus on their job.
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Minor cleanup
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Add license info in files
Piotr Jaszczyk <piotr.jaszczyk@nokia.com>

Change-Id: Ic484aa107eba48ad48f8ab222799e1795dffa865
Issue-ID: DCAEGEN2-601
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
5 years agoInitial empty repository
Jessica Wagantall [Wed, 11 Jul 2018 18:40:07 +0000 (18:40 +0000)]
Initial empty repository