From dc2d57d0f5d3fefe7efbabfd5896b3bc73b8359f Mon Sep 17 00:00:00 2001 From: Gustavo Lopes Date: Fri, 12 Mar 2021 14:55:41 +0000 Subject: [PATCH 1/2] fixed append entity attributes keyword --- .../Provision/EntityAttributes/010_02.robot | 10 +++++----- .../Provision/EntityAttributes/010_03.robot | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot index 67bb6c34..f0f1480e 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot @@ -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} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_03.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_03.robot index eee1bf46..7f790698 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_03.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_03.robot @@ -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} -- GitLab From 2b818d356ac54848a23c1f42b1656ea6e0e0ecbf Mon Sep 17 00:00:00 2001 From: Gustavo Lopes Date: Fri, 12 Mar 2021 14:56:03 +0000 Subject: [PATCH 2/2] fixed append entity attributes keyword --- .../Provision/EntityAttributes/010_02.robot | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot index f0f1480e..2355e695 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot @@ -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 -- GitLab