Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I652844e722e24cb49f09a3f30aabe3103e271079
-$id: https://fd.io/FIXME/CSIT/UTI/test_case/info/1.3.0
+$id: https://fd.io/FIXME/CSIT/UTI/test_case/info/1.4.0
$schema: https://json-schema.org/draft/2020-12/schema
description: >-
Schema for output of test case.
$schema: https://json-schema.org/draft/2020-12/schema
description: >-
Schema for output of test case.
CSIT model version (semver format)
the exporting code adhered to.
type: string
CSIT model version (semver format)
the exporting code adhered to.
type: string
required:
- duration
- dut_type
required:
- duration
- dut_type
-This document is valid for CSIT model version 1.3.0.
+This document is valid for CSIT model version 1.4.0.
It is recommended to use semantic versioning: https://semver.org/
That means, if the new model misses a field present in the old model,
It is recommended to use semantic versioning: https://semver.org/
That means, if the new model misses a field present in the old model,
"""Constants used in CSIT."""
# Version for CSIT data model. See docs/model/.
"""Constants used in CSIT."""
# Version for CSIT data model. See docs/model/.
- MODEL_VERSION = u"1.3.0"
+ MODEL_VERSION = u"1.4.0"
# Global off-switch in case JSON export is large or slow.
EXPORT_JSON = get_optimistic_bool_from_env(u"EXPORT_JSON")
# Global off-switch in case JSON export is large or slow.
EXPORT_JSON = get_optimistic_bool_from_env(u"EXPORT_JSON")
import datetime
import os.path
import datetime
import os.path
+from binascii import b2a_base64
from dateutil.parser import parse
from robot.api import logger
from robot.libraries.BuiltIn import BuiltIn
from dateutil.parser import parse
from robot.api import logger
from robot.libraries.BuiltIn import BuiltIn
+from zlib import compress
from resources.libraries.python.Constants import Constants
from resources.libraries.python.jumpavg.AvgStdevStats import AvgStdevStats
from resources.libraries.python.Constants import Constants
from resources.libraries.python.jumpavg.AvgStdevStats import AvgStdevStats
Results are used to avoid future post processing, making it more
efficient to consume.
"""
Results are used to avoid future post processing, making it more
efficient to consume.
"""
+ if self.data["telemetry"]:
+ telemetry_encode = "\n".join(self.data["telemetry"]).encode()
+ telemetry_compress = compress(telemetry_encode, level=9)
+ telemetry_base64 = b2a_base64(telemetry_compress, newline=False)
+ self.data["telemetry"] = [telemetry_base64.decode()]
if u"result" not in self.data:
return
result_node = self.data[u"result"]
if u"result" not in self.data:
return
result_node = self.data[u"result"]