-
Notifications
You must be signed in to change notification settings - Fork 55
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 #130 from telefonicaid/bug/commandErrorError
Bug/command error error
- Loading branch information
Showing
9 changed files
with
245 additions
and
12 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 +1 @@ | ||
|
||
- FIX Commands won't write the Error results in the Context Broker. |
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
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
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
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,19 @@ | ||
{ | ||
"updateAction": "UPDATE", | ||
"contextElements": [ | ||
{ | ||
"id": "Wrong MQTT Device", | ||
"type": "AnMQTTDevice", | ||
"isPattern": "false", | ||
"attributes": [ | ||
{ | ||
"name": "PING", | ||
"type": "command", | ||
"value": { | ||
"data": "22" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
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,22 @@ | ||
{ | ||
"contextElements": [ | ||
{ | ||
"type": "AnMQTTDevice", | ||
"isPattern": "false", | ||
"id": "Wrong MQTT Device", | ||
"attributes": [ | ||
{ | ||
"name": "PING_status", | ||
"type": "commandStatus", | ||
"value": "ERROR" | ||
}, | ||
{ | ||
"name": "PING_info", | ||
"type": "commandResult", | ||
"value": "There was an error in the response of a device to a command [ ]:Error: getaddrinfo ENOTFOUND unexistent.com unexistent.com:80" | ||
} | ||
] | ||
} | ||
], | ||
"updateAction": "UPDATE" | ||
} |
19 changes: 19 additions & 0 deletions
19
test/deviceProvisioning/provisionCommandWrongEndpoint.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,19 @@ | ||
{ | ||
"devices": [ | ||
{ | ||
"device_id": "MQTT_WRONG", | ||
"entity_name": "Wrong MQTT Device", | ||
"entity_type": "AnMQTTDevice", | ||
"timezone": "America/Santiago", | ||
"protocol": "HTTP_UL", | ||
"transport": "HTTP", | ||
"endpoint": "http://unexistent.com/command", | ||
"commands": [ | ||
{ | ||
"name": "PING", | ||
"type": "command" | ||
} | ||
] | ||
} | ||
] | ||
} |
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
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