-
Notifications
You must be signed in to change notification settings - Fork 88
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 #847 from telefonicaid/task/add_test_about_ngsiv2_…
…measure_with_timeInstant add test about ngsiv2 measure with TimeInstant
- Loading branch information
Showing
2 changed files
with
159 additions
and
0 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
66 changes: 66 additions & 0 deletions
66
test/unit/ngsiv2/contextRequests/ngsiv2PayloadMeasureTimeInstant.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,66 @@ | ||
{ | ||
"id":"Second MQTT Device", | ||
"type":"AnMQTTDevice", | ||
"TimeInstant": { | ||
"type": "DateTime", | ||
"value": "2023-11-15T15:52:32Z" | ||
}, | ||
"measure_id": { | ||
"type": "Text", | ||
"value": "urn:ngsiv2:Streetlight:Streetlight-Mylightpoint-2" | ||
}, | ||
"measure_type": { | ||
"type": "Text", | ||
"value": "Streetlight" | ||
}, | ||
"name": { | ||
"type": "Text", | ||
"value": "MyLightPoint-test1" | ||
}, | ||
"description": { | ||
"type": "Text", | ||
"value": "testdescription" | ||
}, | ||
"status": { | ||
"type": "Text", | ||
"value": "connected", | ||
"metadata": { | ||
"TimeInstant": { | ||
"type": "DateTime", | ||
"value": "2023-11-17T11:59:22.661Z" | ||
} | ||
} | ||
}, | ||
"dateServiceStarted": { | ||
"type": "DateTime", | ||
"value": "2020-06-04T09: 55: 02" | ||
}, | ||
"locationComment": { | ||
"type": "Text", | ||
"value": "Test1" | ||
}, | ||
"location": { | ||
"type": "geo:json", | ||
"value": { | ||
"coordinates": [ | ||
-87.88429, | ||
41.99499 | ||
], | ||
"type": "Point" | ||
} | ||
}, | ||
"address": { | ||
"type": "Text", | ||
"value": { | ||
"streetAddress": "MyStreet" | ||
} | ||
}, | ||
"isRemotelyManaged": { | ||
"type": "Integer", | ||
"value": 1 | ||
}, | ||
"installationDate": { | ||
"type": "DateTime", | ||
"value": "2022-04-17T02: 30: 04" | ||
} | ||
} |