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

fix: some regressions in the Test Cases

parent c61785fb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
*** Settings ***
Documentation       Check that you can append entity attributes

Resource            ${EXECDIR}/resources/ApiUtils/ContextInformationConsumption.resource
Resource            ${EXECDIR}/resources/ApiUtils/ContextInformationProvision.resource
Resource            ${EXECDIR}/resources/AssertionUtils.resource
Resource            ${EXECDIR}/resources/JsonUtils.resource
+3 −2
Original line number Diff line number Diff line
@@ -5,12 +5,13 @@ Resource ${EXECDIR}/resources/ApiUtils/ContextInformationProvision.re
Resource            ${EXECDIR}/resources/AssertionUtils.resource
Resource            ${EXECDIR}/resources/JsonUtils.resource

Test Setup          Initialize Environment
Test Setup          Initialize Environment    ${filename}
Test Template       Update entity attributes with invalid entity fragments


*** Variables ***
${vehicle_id_prefix}=       urn:ngsi-ld:Vehicle:
${filename}=                vehicle-speed-two-datasetid-sample.jsonld


*** Test Cases ***
@@ -23,7 +24,6 @@ Update entity attributes with invalid entity fragments
    [Documentation]    Check that you cannot update an attribute if the entity fragment is invalid
    [Tags]    ea-update    5_6_2
    [Arguments]    ${filename}    ${fragment_filename}
    Set Global Variable    ${filename}
    ${response}=    Update Entity Attributes
    ...    ${entity_id}
    ...    ${fragment_filename}
@@ -34,6 +34,7 @@ Update entity attributes with invalid entity fragments
    [Teardown]    Delete Entity by Id Returning Response    ${entity_id}

Initialize Environment
    [Arguments]    ${filename}
    ${entity_id}=    Generate Random Entity Id    ${vehicle_id_prefix}
    Set Global Variable    ${entity_id}
    ${response}=    Create Entity Selecting Content Type
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ ${filename}= vehicle-temporal-representation-sample.jsonld
015_02_02 Delete an attribute to a temporal representation of an entity with an invalid entity id
    invalidId    speed
015_02_03 Delete an attribute to a temporal representation of an entity with an invalid attribute id
    ${valid_temporal_entity_id}    invalidName
    ${valid_temporal_entity_id}    invalid(Name


*** Keywords ***
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ Create Id
    ${valid_temporal_entity_id}=    Generate Random Entity Id    ${vehicle_id_prefix}
    ${unknown_temporal_entity_id}=    Generate Random Entity Id    ${vehicle_id_prefix}
    Set Global Variable    ${valid_temporal_entity_id}
    Set Global Variable    ${unknown_temporal_entity_id}
    ${response}=    Create Or Update Temporal Representation Of Entity Selecting Content Type
    ...    temporal_entity_representation_id=${valid_temporal_entity_id}
    ...    filename=${filename}
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ ${status_code}= 400
016_02_04 Modify attribute instance in temporal representation of an entity if the instance id is not present
    ${temporal_entity_representation_id}    speed    ${EMPTY}
016_02_05 Modify attribute instance in temporal representation of an entity if the attribute name is not a valid name
    ${temporal_entity_representation_id}    invalidId    ${valid_instanceId}
    ${temporal_entity_representation_id}    invalid(Id    ${valid_instanceId}
016_02_06 Modify attribute instance in temporal representation of an entity if the attribute name is not present
    ${temporal_entity_representation_id}    ${EMPTY}    ${valid_instanceId}

Loading