Open mapedraza opened 9 months ago
As you can see here: https://github.com/telefonicaid/iotagent-node-lib/actions/runs/6809822840/job/18516853776?pr=1523#step:5:905
The result is:
{
id: 'testContext',
type: 'testNullExplicit',
a: {
type: 'Number',
value: 'Text123:undefinedundefinedundefinedtestNullExplicit'
}
See the expression used:
expression: 'a+":"+service+subservice+id+type'
When executing tests in IoTA Lib as usual way ( using
iotAgentLib.update
method ), the device JEXL context does not include parameters such as service, subservice or device ID.I do not know if this is something that need to be fixed, but, at least, it should be documented. Found when migrating https://github.com/telefonicaid/iotagent-json/pull/769 to this repo
This PR adds a test to verify it (it is green since it is not comparing the value, need to be amended)