-
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.
fix test due to from the scratch refactor
to send Timestamp ISO to take into account skipValues to take into account Attributes will "shadow" Measures (Attr def is priority)
- Loading branch information
Showing
16 changed files
with
19,362 additions
and
114 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -154,9 +154,9 @@ describe('HTTP: Measure reception ', function () { | |
url: 'http://localhost:' + config.http.port + '/iot/json', | ||
method: 'POST', | ||
json: { | ||
humidity: '111222', | ||
h: '111222', | ||
This comment has been minimized.
Sorry, something went wrong.
mrutid
Author
Member
|
||
pressure: '20', | ||
TimeInstant: '20200222T222222' | ||
TimeInstant: '2020-02-22T22:22:22Z' | ||
This comment has been minimized.
Sorry, something went wrong. |
||
}, | ||
headers: { | ||
'fiware-service': 'smartgondor', | ||
|
@@ -217,9 +217,9 @@ describe('HTTP: Measure reception ', function () { | |
url: 'http://localhost:' + config.http.port + '/iot/json', | ||
method: 'POST', | ||
json: { | ||
humidity: '111222', | ||
h: '111222', | ||
pressure: '20', | ||
TimeInstant: '20200222T222222' | ||
TimeInstant: '2020-02-22T22:22:22Z' | ||
}, | ||
headers: { | ||
'fiware-service': 'smartgondor', | ||
|
@@ -280,7 +280,7 @@ describe('HTTP: Measure reception ', function () { | |
url: 'http://localhost:' + config.http.port + '/iot/json', | ||
method: 'POST', | ||
json: { | ||
humidity: '111222', | ||
h: '111222', | ||
pressure: '20' | ||
}, | ||
headers: { | ||
|
@@ -290,7 +290,7 @@ describe('HTTP: Measure reception ', function () { | |
qs: { | ||
i: 'dev0130101', | ||
k: '1234', | ||
t: '20200222T222222' | ||
t: '2020-02-22T22:22:22Z' | ||
} | ||
}; | ||
const provisionOptions = { | ||
|
@@ -343,7 +343,7 @@ describe('HTTP: Measure reception ', function () { | |
url: 'http://localhost:' + config.http.port + '/iot/json', | ||
method: 'POST', | ||
json: { | ||
humidity: '111222', | ||
h: '111222', | ||
pressure: '20' | ||
}, | ||
headers: { | ||
|
@@ -353,7 +353,7 @@ describe('HTTP: Measure reception ', function () { | |
qs: { | ||
i: 'dev0130101', | ||
k: '1234', | ||
t: '20200222T222222' | ||
t: '2020-02-22T22:22:22Z' | ||
} | ||
}; | ||
const provisionOptions = { | ||
|
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
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
13 changes: 3 additions & 10 deletions
13
test/unit/ngsiv2/contextRequests/timeInstantMeasures2.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 |
---|---|---|
@@ -1,19 +1,12 @@ | ||
{ | ||
"id":"e0130101", | ||
"type":"sensor", | ||
"type":"sensor", | ||
"humidity":{ | ||
"type": "percent", | ||
"value": "111333", | ||
"metadata": { | ||
"TimeInstant":{ | ||
"type": "DateTime", | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"value": "+002020-02-22T22:22:22" | ||
} | ||
} | ||
"value": "111333" | ||
}, | ||
|
||
"TimeInstant":{ | ||
"type": "DateTime", | ||
"value": "+002020-02-22T22:22:22" | ||
"value": "2020-02-22T22:22:22Z" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,18 +1,12 @@ | ||
{ | ||
"id":"e0130101", | ||
"type":"sensor", | ||
"type":"sensor", | ||
"TimeInstant":{ | ||
"type": "DateTime", | ||
"value": "+002020-02-22T22:22:22" | ||
"value": "2020-02-22T22:22:22Z" | ||
}, | ||
"humidity":{ | ||
"type": "percent", | ||
"value": "111222", | ||
"metadata": { | ||
"TimeInstant": { | ||
"type": "DateTime", | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"value": "+002020-02-22T22:22:22" | ||
} | ||
} | ||
"value": "111222" | ||
} | ||
} |
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
Oops, something went wrong.
If you want TimeInstant MEASURE to be propagated it is a MUST DO NOT declare another measure(t)->attr(TimeInstant) mapping