Fix Common Event Header fields validation 75/72775/6
authorJakub Dudycz <jakub.dudycz@nokia.com>
Thu, 15 Nov 2018 12:29:09 +0000 (13:29 +0100)
committerJakub Dudycz <jakub.dudycz@nokia.com>
Mon, 19 Nov 2018 08:29:35 +0000 (09:29 +0100)
commit33ff28e3fab91baa36e954c4fd167b615e94993c
tree33ed79a9d53e9457a18f9aa355962d6f89f95f5c
parent3fdd2fe2b4f35e18998d050c632fc6de24a7e3b1
Fix Common Event Header fields validation

- "sequence" is no longer a required parameter,
  since deafult value "0" is acceptable
- "vesEventListenerVersion" has to match the regular expression "7\.[0-9]+\.[0-9]+"

Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-976
Change-Id: I2f9fd6f375ccca3255cc9e035918dc37cc97bd6a
hv-collector-core/src/main/kotlin/org/onap/dcae/collectors/veshv/impl/MessageValidator.kt
hv-collector-core/src/test/kotlin/org/onap/dcae/collectors/veshv/impl/MessageValidatorTest.kt
hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/validation.kt
hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/vesEvents.kt