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-test-utils | |
parent | 4d15e5a578dc2c94af2b7f1c7ad02fb44d384501 (diff) | |
parent | 33ff28e3fab91baa36e954c4fd167b615e94993c (diff) |
Merge "Fix Common Event Header fields validation"
Diffstat (limited to 'hv-collector-test-utils')
-rw-r--r-- | hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/vesEvents.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/vesEvents.kt b/hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/vesEvents.kt index 20d0c50f..569f1a90 100644 --- a/hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/vesEvents.kt +++ b/hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/vesEvents.kt @@ -44,7 +44,8 @@ fun vesEvent(commonEventHeader: CommonEventHeader, fun commonHeader(domain: VesEventDomain = PERF3GPP, id: String = randomUUID().toString(), - priority: Priority = Priority.NORMAL): CommonEventHeader = + priority: Priority = Priority.NORMAL, + vesEventListenerVersion: String = "7.0.2"): CommonEventHeader = CommonEventHeader.newBuilder() .setVersion("sample-version") .setDomain(domain.domainName) @@ -63,7 +64,7 @@ fun commonHeader(domain: VesEventDomain = PERF3GPP, .setSourceId(ByteString.copyFromUtf8("sample-source-id")) .setSourceName("sample-source-name") .setTimeZoneOffset("+1") - .setVesEventListenerVersion("another-version") + .setVesEventListenerVersion(vesEventListenerVersion) .build() fun vesEventBytes(commonHeader: CommonEventHeader, byteString: ByteString = ByteString.EMPTY): ByteData = |