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

fix(017): incorrect test setup

parent c5d37839
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -3,7 +3,8 @@ Documentation Check that you cannot delete an attribute instance in temporal
Resource          ${EXECDIR}/resources/ApiUtils.resource
Resource          ${EXECDIR}/resources/AssertionUtils.resource
Resource          ${EXECDIR}/resources/JsonUtils.resource
Suite Setup       Create Id
Suite Setup       Create Temporal Entity
Suite Teardown    Delete Temporal Entity
Test Template     Delete attribute instance

*** Variable ***
@@ -37,9 +38,8 @@ Delete attribute instance
    [Tags]    tea-instance-delete    5_6_15
    ${response}=    Delete Attribute Instance From Temporal Entity    ${temporal_entity_id}    ${attributeId}    ${instanceId}    ${CONTENT_TYPE_JSON}    ${ngsild_test_suite_context}
    Check Response Status Code    ${status_code}    ${response['status']}
    [Teardown]    Delete Temporal Representation Of Entity    ${temporal_entity_representation_id}

Create Id
Create Temporal Entity
    ${temporal_entity_representation_id}=    Generate Random Entity Id    ${vehicle_id_prefix}
    Set Suite Variable    ${temporal_entity_representation_id}
    ${response}=    Create Or Update Temporal Representation Of Entity Selecting Content Type    ${temporal_entity_representation_id}    ${filename}    ${CONTENT_TYPE_LD_JSON}
@@ -47,3 +47,6 @@ Create Id
    ${response}=    Get Temporal Representation Of Entity    ${temporal_entity_representation_id}    ${CONTENT_TYPE_LD_JSON}    sysAttrs    ${ngsild_test_suite_context}
    ${valid_instanceId}=    Set Variable    ${response['body']['speed'][0]['instanceId']}
    Set Suite Variable    ${valid_instanceId}

Delete Temporal Entity
    Delete Temporal Representation Of Entity    ${temporal_entity_representation_id}
+0 −6
Original line number Diff line number Diff line
{
   "id":"urn:ngsi-ld:Vehicle:randomUUID",
   "type":"Vehicle",
   "brandName":[
      {
         "type":"Property",
         "value":"BMW"
      }
   ],
   "speed":[
      {
         "type":"Property",