forked from telefonicaid/sigfox-iotagent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add nock to test without context broker telefonicaid#81
- Loading branch information
vraybaud
committed
Jun 16, 2020
1 parent
b6e3b50
commit 2d123e4
Showing
12 changed files
with
363 additions
and
187 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
42 changes: 42 additions & 0 deletions
42
test/examples/deviceProvisioning/expectedDataUpdatePluginRequest.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,42 @@ | ||
{ | ||
"contextElements": [ | ||
{ | ||
"type": "SIGFOX", | ||
"isPattern": "false", | ||
"id": "sigApp3", | ||
"attributes": [ | ||
{ | ||
"name": "time", | ||
"type": "String", | ||
"value": "1430909015" | ||
}, | ||
{ | ||
"name": "statin", | ||
"type": "String", | ||
"value": "0A5F" | ||
}, | ||
{ | ||
"name": "lng", | ||
"type": "String", | ||
"value": "-4" | ||
}, | ||
{ | ||
"name": "lat", | ||
"type": "String", | ||
"value": "41" | ||
}, | ||
{ | ||
"name": "campo1", | ||
"type": "Integer", | ||
"value": "valor1" | ||
}, | ||
{ | ||
"name": "campo2", | ||
"type": "Integer", | ||
"value": 64 | ||
} | ||
] | ||
} | ||
], | ||
"updateAction": "UPDATE" | ||
} |
57 changes: 57 additions & 0 deletions
57
test/examples/deviceProvisioning/expectedDataUpdateRequest.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,57 @@ | ||
{ | ||
"contextElements": [ | ||
{ | ||
"type": "SIGFOX", | ||
"isPattern": "false", | ||
"id": "sigApp2", | ||
"attributes": [ | ||
{ | ||
"name": "time", | ||
"type": "String", | ||
"value": "1430909015" | ||
}, | ||
{ | ||
"name": "statin", | ||
"type": "String", | ||
"value": "0A5F" | ||
}, | ||
{ | ||
"name": "lng", | ||
"type": "String", | ||
"value": "-4" | ||
}, | ||
{ | ||
"name": "lat", | ||
"type": "String", | ||
"value": "41" | ||
}, | ||
{ | ||
"name": "theCounter", | ||
"type": "Integer", | ||
"value": 2 | ||
}, | ||
{ | ||
"name": "theParam1", | ||
"type": "Integer", | ||
"value": 0 | ||
}, | ||
{ | ||
"name": "param2", | ||
"type": "Integer", | ||
"value": 0 | ||
}, | ||
{ | ||
"name": "tempDegreesCelsius", | ||
"type": "Integer", | ||
"value": 35 | ||
}, | ||
{ | ||
"name": "voltage", | ||
"type": "Integer", | ||
"value": 3183 | ||
} | ||
] | ||
} | ||
], | ||
"updateAction": "UPDATE" | ||
} |
42 changes: 42 additions & 0 deletions
42
test/examples/deviceProvisioning/expectedProvisioningPluginRequest.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,42 @@ | ||
{ | ||
"contextElements": [ | ||
{ | ||
"type": "SIGFOX", | ||
"isPattern": "false", | ||
"id": "sigApp3", | ||
"attributes": [ | ||
{ | ||
"name": "time", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "statin", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "lng", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "lat", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "campo1", | ||
"type": "Integer", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "campo2", | ||
"type": "Integer", | ||
"value": " " | ||
} | ||
] | ||
} | ||
], | ||
"updateAction": "APPEND" | ||
} |
57 changes: 57 additions & 0 deletions
57
test/examples/deviceProvisioning/expectedProvisioningRequest.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,57 @@ | ||
{ | ||
"contextElements": [ | ||
{ | ||
"type": "SIGFOX", | ||
"isPattern": "false", | ||
"id": "sigApp2", | ||
"attributes": [ | ||
{ | ||
"name": "time", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "statin", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "lng", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "lat", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "theCounter", | ||
"type": "Integer", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "theParam1", | ||
"type": "Integer", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "param2", | ||
"type": "Integer", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "tempDegreesCelsius", | ||
"type": "Integer", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "voltage", | ||
"type": "Integer", | ||
"value": " " | ||
} | ||
] | ||
} | ||
], | ||
"updateAction": "APPEND" | ||
} |
57 changes: 57 additions & 0 deletions
57
test/examples/ngsi-communication/expectedDeviceRegisterRequest.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,57 @@ | ||
{ | ||
"contextElements": [ | ||
{ | ||
"type": "SIGFOX", | ||
"isPattern": "false", | ||
"id": "SIGFOX:sigApp1", | ||
"attributes": [ | ||
{ | ||
"name": "time", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "statin", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "lng", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "lat", | ||
"type": "String", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "counter", | ||
"type": "Integer", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "param1", | ||
"type": "Integer", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "param2", | ||
"type": "Integer", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "tempDegreesCelsius", | ||
"type": "Integer", | ||
"value": " " | ||
}, | ||
{ | ||
"name": "voltage", | ||
"type": "Integer", | ||
"value": " " | ||
} | ||
] | ||
} | ||
], | ||
"updateAction": "APPEND" | ||
} |
57 changes: 57 additions & 0 deletions
57
test/examples/ngsi-communication/expectedDeviceUpdateDataRequest.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,57 @@ | ||
{ | ||
"contextElements": [ | ||
{ | ||
"type": "SIGFOX", | ||
"isPattern": "false", | ||
"id": "SIGFOX:sigApp1", | ||
"attributes": [ | ||
{ | ||
"name": "time", | ||
"type": "String", | ||
"value": "1430909015" | ||
}, | ||
{ | ||
"name": "statin", | ||
"type": "String", | ||
"value": "0A5F" | ||
}, | ||
{ | ||
"name": "lng", | ||
"type": "String", | ||
"value": "-4" | ||
}, | ||
{ | ||
"name": "lat", | ||
"type": "String", | ||
"value": "41" | ||
}, | ||
{ | ||
"name": "counter", | ||
"type": "Integer", | ||
"value": 2 | ||
}, | ||
{ | ||
"name": "param1", | ||
"type": "Integer", | ||
"value": 0 | ||
}, | ||
{ | ||
"name": "param2", | ||
"type": "Integer", | ||
"value": 0 | ||
}, | ||
{ | ||
"name": "tempDegreesCelsius", | ||
"type": "Integer", | ||
"value": 35 | ||
}, | ||
{ | ||
"name": "voltage", | ||
"type": "Integer", | ||
"value": 3183 | ||
} | ||
] | ||
} | ||
], | ||
"updateAction": "UPDATE" | ||
} |
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
Oops, something went wrong.