@@ -14,6 +14,13 @@ Feature: Payloads Controller
1414 | engineId | null |
1515 | assetId | null |
1616
17+ Scenario : Reject if measuredAt is not unix timestamp
18+ Given I try to send the following "dummy-temp" payloads:
19+ | deviceEUI | temperature | measuredAt |
20+ | "12345 " | 21 | 1671007889 |
21+ Then I should receive an error matching:
22+ | message | "Invalid payload : \"measuredAt \" should be a timestamp in milliseconds " |
23+
1724 Scenario : Reject with error a DummyTemp payload
1825 Given I try to send the following "dummy-temp" payloads:
1926 | deviceEUI | temperature |
@@ -61,12 +68,12 @@ Feature: Payloads Controller
6168 And I should receive a result matching:
6269 | hits [0 ]._source .type | "temperature " |
6370 | hits [0 ]._source .measuredAt | "_DATE_NOW_ " |
64- | hits [0 ]._source .origin ._id | "DummyTemp -linked1 " |
71+ | hits [0 ]._source .origin ._id | "DummyTemp -linked1 " |
6572 | hits [0 ]._source .origin .type | "device " |
6673 | hits [0 ]._source .origin .measureName | "temperature " |
6774 | hits [0 ]._source .origin .deviceModel | "DummyTemp " |
6875 | hits [0 ]._source .origin .reference | "linked1 " |
69- | hits [0 ]._source .asset ._id | "container -linked1 " |
76+ | hits [0 ]._source .asset ._id | "container -linked1 " |
7077 | hits [0 ]._source .asset .measureName | "temperatureExt " |
7178 | hits [0 ]._source .asset .metadata .weight | 10 |
7279 | hits [0 ]._source .asset .metadata .height | 11 |
0 commit comments