diff --git a/test/unit/examples/deviceProvisioningRequests/provisionFullDevice.json b/test/unit/examples/deviceProvisioningRequests/provisionFullDevice.json index 694b1c4cc..83e3926c9 100644 --- a/test/unit/examples/deviceProvisioningRequests/provisionFullDevice.json +++ b/test/unit/examples/deviceProvisioningRequests/provisionFullDevice.json @@ -25,19 +25,7 @@ { "name":"location", "type":"geo:point", - "expression": "${latitude}, ${longitude}", - "reverse": [ - { - "object_id":"latitude", - "type": "string", - "expression": "${trim(substr(@location, indexOf(@location, \",\") + 1, length(@location)))}" - }, - { - "object_id":"longitude", - "type": "string", - "expression": "${trim(substr(@location, 0, indexOf(@location, \",\")))}" - } - ] + "expression": "${latitude}, ${longitude}" } ], "static_attributes": [], diff --git a/test/unit/ngsi-ld/provisioning/listProvisionedDevices-test.js b/test/unit/ngsi-ld/provisioning/listProvisionedDevices-test.js index 3a12084bb..472bca282 100644 --- a/test/unit/ngsi-ld/provisioning/listProvisionedDevices-test.js +++ b/test/unit/ngsi-ld/provisioning/listProvisionedDevices-test.js @@ -184,11 +184,9 @@ describe('NGSI-LD - Device provisioning API: List provisioned devices', function should.exist(body.devices[2].attributes[0].entity_name); should.exist(body.devices[2].attributes[0].entity_type); should.exist(body.devices[2].attributes[1].expression); - should.exist(body.devices[2].attributes[2].reverse); body.devices[2].attributes[0].entity_name.should.equal('Higro2000'); body.devices[2].attributes[0].entity_type.should.equal('Higrometer'); body.devices[2].attributes[1].expression.should.equal('${@humidity * 20}'); - body.devices[2].attributes[2].reverse.length.should.equal(2); done(); }); }); diff --git a/test/unit/ngsiv2/provisioning/listProvisionedDevices-test.js b/test/unit/ngsiv2/provisioning/listProvisionedDevices-test.js index d51632100..7025188f9 100644 --- a/test/unit/ngsiv2/provisioning/listProvisionedDevices-test.js +++ b/test/unit/ngsiv2/provisioning/listProvisionedDevices-test.js @@ -183,11 +183,9 @@ describe('NGSI-v2 - Device provisioning API: List provisioned devices', function should.exist(body.devices[2].attributes[0].entity_name); should.exist(body.devices[2].attributes[0].entity_type); should.exist(body.devices[2].attributes[1].expression); - should.exist(body.devices[2].attributes[2].reverse); body.devices[2].attributes[0].entity_name.should.equal('Higro2000'); body.devices[2].attributes[0].entity_type.should.equal('Higrometer'); body.devices[2].attributes[1].expression.should.equal('${@humidity * 20}'); - body.devices[2].attributes[2].reverse.length.should.equal(2); done(); }); });