summaryrefslogtreecommitdiffstats
path: root/tests/test1.json
diff options
context:
space:
mode:
authorSatoshi Fujii <fujii-satoshi@jp.fujitsu.com>2021-10-15 06:55:11 +0000
committerSatoshi Fujii <fujii-satoshi@jp.fujitsu.com>2021-10-21 11:47:22 +0000
commita8d624c0502c241feadcfba71ba1442b22d9908b (patch)
tree41bb96a9be8f054c81605eed6bc8bb85d82975b4 /tests/test1.json
parent4c058689904178714211f38bc5e5e083eaffadbf (diff)
Fix microsec timestamp not properly handled
Current heartbeat service assumes lastEpochMicrosec timestamp in VES notification is represented as milli-seconds, but some devices sends micro-sec timestamp in the field. In that case, the heartbeat notification was not working due to timestamp comparison was not done properly. Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> Issue-ID: DCAEGEN2-2940 Change-Id: Id7c9241de70cb3ff7ee59cf1e2c60089ff96a42b
Diffstat (limited to 'tests/test1.json')
-rw-r--r--tests/test1.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test1.json b/tests/test1.json
index 0390a91..8d105e2 100644
--- a/tests/test1.json
+++ b/tests/test1.json
@@ -1 +1 @@
-{ "event": { "commonEventHeader": { "vesEventListenerVersion": "7.0.2", "domain": "heartbeat", "eventId": "mvfs10", "eventName": "Heartbeat_vDNS", "lastEpochMicrosec": 1548313727714, "priority": "Normal", "reportingEntityName": "ibcx0001vm002oam001", "sequence": 1000, "sourceName": "SOURCE_NAME1", "startEpochMicrosec": 1548313727714, "version": "4.0.2", "reportingEntityId": "cc305d54-75b4-431b-adb2-eb6b9e541234", "sourceId": "VNFA_SRC1", "eventType": "platform", "nfcNamingCode": "VNFA", "nfNamingCode": "VNFA", "timeZoneOffset": "UTC-05:30" }, "heartbeatFields": { "heartbeatInterval": 20, "heartbeatFieldsVersion": "3.0" } } }
+{ "event": { "commonEventHeader": { "vesEventListenerVersion": "7.0.2", "domain": "heartbeat", "eventId": "mvfs10", "eventName": "Heartbeat_vDNS", "lastEpochMicrosec": 1548313727714000, "priority": "Normal", "reportingEntityName": "ibcx0001vm002oam001", "sequence": 1000, "sourceName": "SOURCE_NAME1", "startEpochMicrosec": 1548313727714000, "version": "4.0.2", "reportingEntityId": "cc305d54-75b4-431b-adb2-eb6b9e541234", "sourceId": "VNFA_SRC1", "eventType": "platform", "nfcNamingCode": "VNFA", "nfNamingCode": "VNFA", "timeZoneOffset": "UTC-05:30" }, "heartbeatFields": { "heartbeatInterval": 20, "heartbeatFieldsVersion": "3.0" } } }