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.
Files changed (30) hide show
  1. package/config.js +2 -1
  2. package/doc/admin.md +16 -7
  3. package/doc/api.md +230 -45
  4. package/doc/requirements.txt +1 -1
  5. package/docker/Mosquitto/Dockerfile +1 -1
  6. package/lib/commonConfig.js +25 -1
  7. package/lib/errors.js +4 -1
  8. package/lib/services/devices/deviceRegistryMemory.js +1 -1
  9. package/lib/services/devices/deviceRegistryMongoDB.js +3 -10
  10. package/lib/services/devices/deviceService.js +5 -3
  11. package/lib/services/devices/devices-NGSI-LD.js +5 -5
  12. package/lib/services/devices/devices-NGSI-mixed.js +3 -3
  13. package/lib/services/devices/devices-NGSI-v2.js +5 -5
  14. package/lib/services/ngsi/entities-NGSI-LD.js +1 -1
  15. package/lib/services/ngsi/entities-NGSI-v2.js +324 -268
  16. package/lib/services/ngsi/ngsiService.js +2 -2
  17. package/lib/services/ngsi/subscription-NGSI-LD.js +2 -2
  18. package/lib/services/ngsi/subscription-NGSI-v2.js +2 -2
  19. package/lib/services/northBound/deviceProvisioningServer.js +5 -4
  20. package/lib/services/northBound/northboundServer.js +2 -2
  21. package/package.json +2 -2
  22. package/scripts/legacy_expression_tool/requirements.txt +1 -1
  23. package/test/functional/README.md +60 -37
  24. package/test/functional/testCases.js +2206 -722
  25. package/test/functional/testUtils.js +53 -20
  26. package/test/unit/examples/deviceProvisioningRequests/updateProvisionDeviceWithApikey.json +4 -0
  27. package/test/unit/ngsi-ld/provisioning/device-update-registration_test.js +5 -5
  28. package/test/unit/ngsiv2/plugins/multientity-plugin_test.js +34 -2
  29. package/test/unit/ngsiv2/provisioning/device-update-registration_test.js +6 -6
  30. 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);