iotagent-node-lib 4.3.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config.js +2 -1
- package/doc/admin.md +16 -7
- package/doc/api.md +230 -45
- package/doc/requirements.txt +1 -1
- package/docker/Mosquitto/Dockerfile +1 -1
- package/lib/commonConfig.js +25 -1
- package/lib/errors.js +4 -1
- package/lib/services/devices/deviceRegistryMemory.js +1 -1
- package/lib/services/devices/deviceRegistryMongoDB.js +3 -10
- package/lib/services/devices/deviceService.js +5 -3
- package/lib/services/devices/devices-NGSI-LD.js +5 -5
- package/lib/services/devices/devices-NGSI-mixed.js +3 -3
- package/lib/services/devices/devices-NGSI-v2.js +5 -5
- package/lib/services/ngsi/entities-NGSI-LD.js +1 -1
- package/lib/services/ngsi/entities-NGSI-v2.js +324 -268
- package/lib/services/ngsi/ngsiService.js +2 -2
- package/lib/services/ngsi/subscription-NGSI-LD.js +2 -2
- package/lib/services/ngsi/subscription-NGSI-v2.js +2 -2
- package/lib/services/northBound/deviceProvisioningServer.js +5 -4
- package/lib/services/northBound/northboundServer.js +2 -2
- package/package.json +2 -2
- package/scripts/legacy_expression_tool/requirements.txt +1 -1
- package/test/functional/README.md +60 -37
- package/test/functional/testCases.js +2206 -722
- package/test/functional/testUtils.js +53 -20
- package/test/unit/examples/deviceProvisioningRequests/updateProvisionDeviceWithApikey.json +4 -0
- package/test/unit/ngsi-ld/provisioning/device-update-registration_test.js +5 -5
- package/test/unit/ngsiv2/plugins/multientity-plugin_test.js +34 -2
- package/test/unit/ngsiv2/provisioning/device-update-registration_test.js +6 -6
- package/test/unit/ngsiv2/provisioning/updateProvisionedDevices-test.js +35 -0
|
@@ -341,7 +341,7 @@ function generateNGSILDOperationHandler(operationName, entityName, typeInformati
|
|
|
341
341
|
} else if (
|
|
342
342
|
response &&
|
|
343
343
|
operationName === 'update' &&
|
|
344
|
-
(response.statusCode === 200 || response.statusCode === 204)
|
|
344
|
+
(response.statusCode === 200 || response.statusCode === 204 || response.statusCode === 201)
|
|
345
345
|
) {
|
|
346
346
|
logger.info(context, 'Received the following response from the CB: Value updated successfully\n');
|
|
347
347
|
alarms.release(constants.ORION_ALARM);
|