Commit cfae22a3 authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

fix: wrap single temporal normalized attributes into a list (#32)

parent 33b000aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ Delete Temporal Attribute and Retrieve Temporal Evolution of Attribute
    ...    excluded_regex=deletedAt
    Should Have Value In Json
    ...    json_object=${response2.json()}
    ...    json_path=['${attr_name}']['deletedAt']
    ...    json_path=['${attr_name}'][0]['deletedAt']

Create Temporal Entity
    ${temporal_entity_representation_id}=    Generate Random Vehicle Entity Id
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ Delete Temporal Attribute and Retrieve Temporal Evolution of Attribute
    ...    excluded_regex=deletedAt
    Should Have Value In Json
    ...    json_object=${response2.json()}
    ...    json_path=['scope']['deletedAt']
    ...    json_path=['scope'][0]['deletedAt']

Create Temporal Entity
    ${temporal_entity_representation_id}=    Generate Random Vehicle Entity Id
+14 −10
Original line number Diff line number Diff line
{
   "id":"urn:ngsi-ld:Vehicle:randomUUID",
   "type":"Vehicle",
   "fuelLevel":{
   "fuelLevel":[
     {
        "type":"Property",
        "value":67,
        "observedAt":"2020-08-01T12:03:00Z"
   },
   "speed":{
    }
   ],
   "speed":[
     {
        "type":"Property",
        "value":120,
        "observedAt":"2020-08-01T12:03:00Z"
     }
   ]
}
 No newline at end of file
+7 −5
Original line number Diff line number Diff line
{
   "id":"urn:ngsi-ld:Vehicle:randomUUID",
   "type":"Vehicle",
   "fuelLevel":{
   "fuelLevel":[
      {
         "type": "Property",
         "value": 67,
         "observedAt": "2020-08-01T12:03:00Z"
   },
      }
   ],
   "speed":[
      {
         "type":"Property",
+8 −6
Original line number Diff line number Diff line
@@ -13,12 +13,14 @@
         "observedAt":"2020-09-01T12:05:00Z"
      }
   ],
   "fuelLevel":{
   "fuelLevel":[
      {
         "type":"Property",
         "value":40,
         "observedAt":"2020-09-01T14:07:00Z",
         "datasetId":"urn:ngsi-ld:Vehicle:12345-fuel"
  },
      }
   ],
   "@context":[
      "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld"
   ]
Loading