-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1300 from telefonicaid/task/check-empty-device-id
Fix empty `device_id` on device registration
- Loading branch information
Showing
4 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
- Set Nodejs 12 as minimum version in packages.json (effectively removing Nodev10 from supported versions) | ||
- Fix: INVALID EXPRESSION policy at JEXL expression in attributes and entity_names (default values will be propagated and a warn will be logged instead of exception) (#1292) | ||
- Fix: empty device_id on device registration (#1298) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
test/unit/examples/deviceProvisioningRequests/provisionNewDeviceEmpty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"devices": [ | ||
{ | ||
"device_id": "", | ||
"protocol": "GENERIC_PROTO", | ||
"entity_name": "TheFirstLight", | ||
"entity_type": "TheLightType", | ||
"timezone": "America/Santiago", | ||
"endpoint": "http://fakedEndpoint:1234", | ||
"transport": "MQTT", | ||
"attributes": [ | ||
{ | ||
"name": "attr_name", | ||
"type": "string" | ||
} | ||
], | ||
"lazy": [ | ||
{ | ||
"name": "luminance", | ||
"type": "lumens" | ||
} | ||
], | ||
"static_attributes": [ | ||
{ | ||
"name": "hardcodedAttr", | ||
"type": "hardcodedType", | ||
"value": "hardcodedValue" | ||
} | ||
], | ||
"commands": [ | ||
{ | ||
"name": "commandAttr", | ||
"type": "commandType" | ||
} | ||
], | ||
"internal_attributes": [ | ||
{ | ||
"customField": "customValue" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters