Commit dc2d57d0 authored by lopesg's avatar lopesg
Browse files

fixed append entity attributes keyword

parent 5d7f6d97
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -14,10 +14,10 @@ ${invalid_fragment_filename}= invalid-fragment.jsonld
*** Test Cases ***
010_02_01_Append entity attributes if the entity Id is not present                
  Append Attributes  ${EMPTY}               
010_02_02_Append entity attributes if the Entity Id is not a valid URI            
  Append Attributes  thisisaninvaliduri
010_02_03_Append entity attributes with invalid entity fragments
  Append entity attributes with invalid entity fragments
#010_02_02_Append entity attributes if the Entity Id is not a valid URI            
#  Append Attributes  thisisaninvaliduri
#010_02_03_Append entity attributes with invalid entity fragments
#  Append entity attributes with invalid entity fragments

*** Keywords ***
Append Attributes
@@ -29,7 +29,7 @@ Append Attributes
    ${request}    ${response}=    Create Entity Selecting Content Type  ${filename}     ${entity_id}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code  201    ${response['status']}

    ${response}=    Append Entity Attributes    ${entity_invalid_id}    ${fragment_filename}    ${CONTENT_TYPE_LD_JSON}    ${EMPTY}
    ${response}=    Append Entity Attributes    ${entity_invalid_id}    ${fragment_filename}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code  ${status_code}    ${response['status']}
    Check Response Body Containing ProblemDetails Element Containing Type Element set to      ${response}     ${ERROR_TYPE_BAD_REQUEST_DATA}
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response}
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ Append entity attributes when the entity id is not known to the system
    [Tags]  /entities/{entityId}/attrs/      5_6_3

    ${entity_id}=     Generate Random Entity Id    ${vehicle_id_prefix}
    ${response}=    Append Entity Attributes    ${entity_id}    ${fragment_filename}    ${CONTENT_TYPE_LD_JSON}    ${EMPTY}
    ${response}=    Append Entity Attributes    ${entity_id}    ${fragment_filename}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code  404    ${response['status']}
    Check Response Body Containing ProblemDetails Element Containing Type Element set to      ${response}     ${ERROR_TYPE_RESOURCE_NOT_FOUND}
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response}