-
Task
-
Resolution: Done
-
Medium
-
None
-
D-Release Maintenance
In the past the measurement ves test script was used to test a wrong time stamp unit (ms instead of µs).
Such test case is not needed anymore. In order to avoid confusion, the recreated script should send the expected unit µs.
Thanks santanude for your contribution:
The problem has been fixed after making the following changes in the globalVesEventEmitter.py file. Here is the outcome of git diff.
— a/solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py
+++ b/solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py
@@ -26,6 +26,7 @@ import socket
import sys
import yaml
from pathlib import Path
+from datetime import timezone
def sendVesEvent(data):
url = data['config']['vesEndpoint']['url']
@@ -66,7 +67,8 @@ def sendHttpGet(url):
sys.exit('Reading VES "stndDefined" message template failed.')
def getInitData(domain, stndBody=''):
- currentTime = datetime.datetime.utcnow()
+ #currentTime = datetime.datetime.utcnow()
+ currentTime = datetime.datetime.now(tz=timezone.utc)
dir = os.path.dirname(os.path.realpath(_file_))
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
6393,1 | Wrong value format in measurment ves example | master | oam | Status: MERGED | +2 | +1 |
6486,1 | Wrong value format in measurment ves example | master | oam | Status: MERGED | +2 | +1 |