Uploaded image for project: 'Operations and Maintenance'
  1. Operations and Maintenance
  2. OAM-221

Wrong value format in measurment ves example

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • E-Release
    • None
    • oam

      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_))

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            demx8as6 Martin Skorupski
            alex.stancu Alex Stancu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: