Closed mapedraza closed 1 year ago
Additionally, test does not implements all the cases: https://github.com/telefonicaid/iotagent-node-lib/blob/master/test/unit/ngsiv2/plugins/timestamp-processing-plugin_test.js
Having a quick look, does not seems. I am going to implement a test case, so we can check.
timeInstant value | measure contains timeInstant | actual behaviour | expectation |
---|---|---|---|
false | No | TimeInstant and metadata updated with server timestamp | should not appear neither as attribute not as metadata - NOK |
-- | -- | -- | -- |
This case happens when group has timestamp to false but device is autoprovisioned, and has no explicity defined timestamp at device level
typeInformation (device and groups has no timestmap but iotagent has IOTA_TIMESTAMP=true by default)
So this case works well when IOTA_TIMESTAMP=false
Added tests in PR https://github.com/telefonicaid/iotagent-node-lib/pull/1415
Test cases covered by PR https://github.com/telefonicaid/iotagent-node-lib/pull/1415. Closing.
IoT Agent Node Lib version the issue has been seen with
3.2.0
Bound or port used (API interaction)
Southbound (Devices data API), Northbound (Provision API and NGSI Interactions)
NGSI version
NGSIv2
Are you running a container?
Yes, I am using a contaner (Docker, Kubernetes...)
Image type
normal
Expected behaviour you didn't see
When using
timeInstant
parameter under a group, it is not working as expected. 6 possible cases analyzedtimeInstant
valuetrue
true
false
false
Unexpected behaviour you saw
No response
Steps to reproduce the problem
No response
Configs
Log output
No response