diff options
author | Przemyslaw Wasala <przemyslaw.wasala@nokia.com> | 2018-11-19 10:28:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-19 10:28:28 +0000 |
commit | e3e2a55c10f00c26a565cdf30a5ae2b49604344d (patch) | |
tree | ce39c7506bf63cb111a3e0a3d85b00faee20dc79 /hv-collector-domain | |
parent | 4d15e5a578dc2c94af2b7f1c7ad02fb44d384501 (diff) | |
parent | 33ff28e3fab91baa36e954c4fd167b615e94993c (diff) |
Merge "Fix Common Event Header fields validation"
Diffstat (limited to 'hv-collector-domain')
-rw-r--r-- | hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/validation.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/validation.kt b/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/validation.kt index 339a652c..e0615bbe 100644 --- a/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/validation.kt +++ b/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/validation.kt @@ -24,7 +24,7 @@ import org.onap.ves.VesEventOuterClass val headerRequiredFieldDescriptors = listOf( "version", "domain", - "sequence", + /* field "sequence" has been removed from validation, since default value "0" is acceptable */ "priority", "eventId", "eventName", @@ -34,3 +34,5 @@ val headerRequiredFieldDescriptors = listOf( "sourceName", "vesEventListenerVersion") .map { fieldName -> VesEventOuterClass.CommonEventHeader.getDescriptor().findFieldByName(fieldName) } + +val vesEventListenerVersionRegex = """7\.[0-9]+\.[0-9]+""".toRegex() |