From 9c5f6e44d711d418fe4ef2f2ad766b3adebb9ad2 Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Mon, 9 Jun 2025 08:59:38 +0200 Subject: [PATCH] feat: check empty response body is empty on 201 and 204 --- .../BatchEntities/DeleteBatchOfEntities/006_01.robot | 1 + .../BatchEntities/MergeBatchOfEntities/057_01.robot | 1 + .../BatchEntities/UpdateBatchOfEntities/005_01.robot | 1 + .../BatchEntities/UpdateBatchOfEntities/005_05.robot | 1 + .../BatchEntities/UpsertBatchOfEntities/004_03.robot | 1 + .../BatchEntities/UpsertBatchOfEntities/004_08.robot | 1 + .../Provision/Entities/CreateEntity/001_01.robot | 1 + .../Provision/Entities/CreateEntity/001_10.robot | 1 + .../Provision/Entities/CreateEntity/001_11.robot | 1 + .../Provision/Entities/CreateEntity/001_12.robot | 1 + .../Provision/Entities/CreateEntity/001_13.robot | 1 + .../Provision/Entities/DeleteEntity/002_01.robot | 1 + .../Provision/Entities/MergeEntity/056_01.robot | 1 + .../Provision/Entities/MergeEntity/056_03.robot | 1 + .../Provision/Entities/MergeEntity/056_04.robot | 1 + .../Provision/Entities/MergeEntity/056_05.robot | 1 + .../Provision/Entities/ReplaceEntity/054_01.robot | 1 + .../Provision/Entities/ReplaceEntity/054_03.robot | 1 + .../EntityAttributes/AppendEntityAttributes/010_01.robot | 1 + .../EntityAttributes/AppendEntityAttributes/010_06.robot | 1 + .../EntityAttributes/AppendEntityAttributes/010_07.robot | 2 ++ .../EntityAttributes/AppendEntityAttributes/010_08.robot | 1 + .../EntityAttributes/AppendEntityAttributes/010_09.robot | 1 + .../EntityAttributes/DeleteEntityAttribute/013_01.robot | 1 + .../EntityAttributes/DeleteEntityAttribute/013_04.robot | 1 + .../EntityAttributes/DeleteEntityAttribute/013_05.robot | 1 + .../EntityAttributes/DeleteEntityAttribute/013_06.robot | 1 + .../EntityAttributes/PartialAttributeUpdate/012_01.robot | 1 + .../EntityAttributes/PartialAttributeUpdate/012_04.robot | 1 + .../EntityAttributes/PartialAttributeUpdate/012_05.robot | 1 + .../EntityAttributes/PartialAttributeUpdate/012_06.robot | 1 + .../EntityAttributes/PartialAttributeUpdate/012_07.robot | 1 + .../EntityAttributes/ReplaceEntityAttribute/055_01.robot | 1 + .../EntityAttributes/ReplaceEntityAttribute/055_02.robot | 1 + .../EntityAttributes/UpdateEntityAttributes/011_01.robot | 1 + .../EntityAttributes/UpdateEntityAttributes/011_05.robot | 1 + .../EntityAttributes/UpdateEntityAttributes/011_06.robot | 1 + .../EntityAttributes/UpdateEntityAttributes/011_07.robot | 1 + .../EntityAttributes/UpdateEntityAttributes/011_08.robot | 1 + .../EntityAttributes/UpdateEntityAttributes/011_09.robot | 1 + .../CreateTemporalRepresentationOfEntity/007_01.robot | 1 + .../DeleteTemporalRepresentationOfEntity/009_01.robot | 1 + .../UpdateTemporalRepresentationOfEntity/008_01.robot | 1 + .../TemporalEntityAttributes/AddAttributes/014_01.robot | 1 + .../TemporalEntityAttributes/DeleteAttribute/015_01.robot | 1 + .../DeleteAttributeInstance/017_01.robot | 1 + .../PartialUpdateAttributeInstance/016_01.robot | 1 + .../Subscription/DeleteSubscription/032_03.robot | 1 + .../Subscription/UpdateSubscription/029_05.robot | 2 ++ .../Subscription/UpdateSubscription/029_06.robot | 1 + .../Subscription/UpdateSubscription/029_07.robot | 1 + .../Subscription/UpdateSubscription/029_08.robot | 1 + .../Subscription/UpdateSubscription/029_09.robot | 1 + .../Subscription/UpdateSubscription/029_10.robot | 1 + .../DeleteContextSourceRegistration/035_01.robot | 1 + .../DeleteContextSourceRegistration/035_02.robot | 1 + .../Registration/RegisterContextSource/033_01_01.robot | 1 + .../Registration/RegisterContextSource/033_01_02.robot | 1 + .../Registration/RegisterContextSource/033_01_03.robot | 1 + .../Registration/RegisterContextSource/033_04.robot | 2 ++ .../Registration/RegisterContextSource/033_05.robot | 2 ++ .../Registration/RegisterContextSource/033_07.robot | 2 ++ .../UpdateContextSourceRegistration/034_01.robot | 1 + .../UpdateContextSourceRegistration/034_05.robot | 1 + .../CreateContextSourceRegistrationSubscription/038_01.robot | 1 + .../CreateContextSourceRegistrationSubscription/038_02.robot | 1 + .../CreateContextSourceRegistrationSubscription/038_03.robot | 1 + .../CreateContextSourceRegistrationSubscription/038_04.robot | 1 + .../CreateContextSourceRegistrationSubscription/038_05.robot | 1 + .../CreateContextSourceRegistrationSubscription/038_06.robot | 1 + .../DeleteContextSourceRegistrationSubscription/042_01.robot | 1 + .../UpdateContextSourceRegistrationSubscription/039_01.robot | 1 + TP/NGSI-LD/jsonldContext/Provision/AddContext/050_01.robot | 1 + TP/NGSI-LD/jsonldContext/Provision/AddContext/050_04.robot | 1 + .../jsonldContext/Provision/DeleteContext/051_01.robot | 1 + .../jsonldContext/Provision/DeleteContext/051_03.robot | 1 + .../jsonldContext/Provision/DeleteContext/051_06.robot | 1 + resources/AssertionUtils.resource | 5 +++++ 78 files changed, 87 insertions(+) diff --git a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/DeleteBatchOfEntities/006_01.robot b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/DeleteBatchOfEntities/006_01.robot index 888c551ea..70110e7ab 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/DeleteBatchOfEntities/006_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/DeleteBatchOfEntities/006_01.robot @@ -17,6 +17,7 @@ Test Setup Setup Initial Entities ${response}= Batch Delete Entities entities_ids_to_be_deleted=@{entities_ids_to_be_deleted} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${expected_entities_ids}= Catenate SEPARATOR=, @{entities_ids_to_be_deleted} ${response1}= Query Entities ... entity_ids=${expected_entities_ids} diff --git a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/MergeBatchOfEntities/057_01.robot b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/MergeBatchOfEntities/057_01.robot index 92c614965..686464c7a 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/MergeBatchOfEntities/057_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/MergeBatchOfEntities/057_01.robot @@ -41,6 +41,7 @@ Batch Merge Entity Scenarios @{entities_to_be_merged}= Create List ${first_entity} ${second_entity} ${response}= Batch Merge Entities @{entities_to_be_merged} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${expected_entities_ids}= Catenate SEPARATOR=, @{entities_ids_to_be_merged} ${response1}= Query Entities diff --git a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpdateBatchOfEntities/005_01.robot b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpdateBatchOfEntities/005_01.robot index 550d5405a..3bd605507 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpdateBatchOfEntities/005_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpdateBatchOfEntities/005_01.robot @@ -40,6 +40,7 @@ Batch Update Entity Scenarios ${response}= Batch Update Entities @{entities_to_be_updated} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${first_created_entity}= Load Test Sample entities/${entity_payload_filename} ${first_entity_id} ${second_created_entity}= Load Test Sample entities/${entity_payload_filename} ${second_entity_id} ${update_fragment}= Load Test Sample entities/${update_fragment_filename} diff --git a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpdateBatchOfEntities/005_05.robot b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpdateBatchOfEntities/005_05.robot index b9c2645b6..019211c2e 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpdateBatchOfEntities/005_05.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpdateBatchOfEntities/005_05.robot @@ -32,6 +32,7 @@ Batch Update Entity Scenarios @{entities_to_be_updated}= Create List ${first_entity} ${second_entity} ${response}= Batch Update Entities @{entities_to_be_updated} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${first_created_entity}= Load Test Sample entities/${entity_payload_filename} ${first_entity_id} ${second_created_entity}= Load Test Sample entities/${entity_payload_filename} ${second_entity_id} ${update_fragment}= Load Test Sample entities/${update_fragment_filename} diff --git a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpsertBatchOfEntities/004_03.robot b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpsertBatchOfEntities/004_03.robot index dcd2612f1..6d39c5135 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpsertBatchOfEntities/004_03.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpsertBatchOfEntities/004_03.robot @@ -41,6 +41,7 @@ Batch Upsert Existing Entities Scenarios ${response}= Batch Upsert Entities @{entities_to_be_upserted} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} @{upserted_entities_ids}= Create List ${first_existing_entity_id} ${second_existing_entity_id} ${expected_updated_entities_ids}= Catenate SEPARATOR=, @{upserted_entities_ids} ${response1}= Query Entities diff --git a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpsertBatchOfEntities/004_08.robot b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpsertBatchOfEntities/004_08.robot index e3ce82b15..34f2118cc 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpsertBatchOfEntities/004_08.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/UpsertBatchOfEntities/004_08.robot @@ -27,6 +27,7 @@ Batch Upsert Existing Entities Scenarios @{entities_to_be_upserted}= Create List ${first_existing_entity} ${second_existing_entity} ${response}= Batch Upsert Entities @{entities_to_be_upserted} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} @{upserted_entities_ids}= Create List ${first_existing_entity_id} ${second_existing_entity_id} ${expected_updated_entities_ids}= Catenate SEPARATOR=, @{upserted_entities_ids} ${response1}= Query Entities diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot index 860b9445c..acdacc0a6 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot @@ -40,6 +40,7 @@ Create Entity Scenarios ... ${entity_id} ... ${content_type} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${entity_id} ${response.headers} ${created_entity}= Load Test Sample entities/${filename} ${entity_id} IF '${content_type}' == 'application/json' diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_10.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_10.robot index 6a8674543..e63d6b41c 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_10.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_10.robot @@ -30,6 +30,7 @@ Create Entity Scenarios ... ${content_type} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${entity_id} ${response.headers} ${created_entity}= Load Test Sample entities/${filename} ${entity_id} ${response1}= Retrieve Entity by Id diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_11.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_11.robot index cc98c873b..9d3c3fe77 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_11.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_11.robot @@ -33,6 +33,7 @@ Create Entity Scenarios ... ${content_type} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${entity_id} ${response.headers} ${created_entity}= Load Test Sample entities/${filename} ${entity_id} ${response1}= Retrieve Entity by Id ${entity_id} ${content_type} diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_12.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_12.robot index 73a88dfc6..1a1df1787 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_12.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_12.robot @@ -29,6 +29,7 @@ ${content_type}= application/ld+json ... ${content_type} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${entity_id} ${response.headers} ${created_entity}= Load Test Sample entities/${filename} ${entity_id} ${response1}= Retrieve Entity by Id diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_13.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_13.robot index 3358c56e9..198e5b71e 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_13.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_13.robot @@ -29,6 +29,7 @@ ${content_type}= application/ld+json ... ${content_type} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${entity_id} ${response.headers} ${created_entity}= Load Test Sample entities/${filename} ${entity_id} ${response1}= Retrieve Entity by Id diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_01.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_01.robot index eebee0b62..d7792dee0 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_01.robot @@ -16,6 +16,7 @@ Test Setup Setup Initial Entity [Tags] e-delete 5_6_6 ${response}= Delete Entity by Id ${entity_id} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response2}= Retrieve Entity by Id id=${entity_id} context=${ngsild_test_suite_context} Check SUT Not Containing Resource ${response2.status_code} diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_01.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_01.robot index 278c6df32..b108da2ba 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_01.robot @@ -40,6 +40,7 @@ Merge Entity Scenarios ... entity_filename=${filename} ... content_type=${CONTENT_TYPE_LD_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Query Entity ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_03.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_03.robot index 247992bd9..3d81f42b0 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_03.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_03.robot @@ -40,6 +40,7 @@ Merge Entity Scenarios ... entity_filename=${filename} ... content_type=${CONTENT_TYPE_LD_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Query Entity ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_04.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_04.robot index d2ffb5308..feada65d8 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_04.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_04.robot @@ -40,6 +40,7 @@ Merge Entity Scenarios ... entity_filename=${filename} ... content_type=${CONTENT_TYPE_LD_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Query Entity ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_05.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_05.robot index f53da4552..70b1db8d3 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_05.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/MergeEntity/056_05.robot @@ -40,6 +40,7 @@ Merge Entity Scenarios ... entity_filename=${filename} ... content_type=${CONTENT_TYPE_LD_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Query Entity ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/ReplaceEntity/054_01.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/ReplaceEntity/054_01.robot index d5ccbc163..771728f5d 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/ReplaceEntity/054_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/ReplaceEntity/054_01.robot @@ -30,6 +30,7 @@ ${expectation_filename} building-locatedAt-and-name-normalized.jsonl ... content_type=${CONTENT_TYPE_JSON} ... context=${ngsild_test_suite_context} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Entity by Id ... id=${entity_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/ReplaceEntity/054_03.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/ReplaceEntity/054_03.robot index 1f5837606..90c53babd 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/ReplaceEntity/054_03.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/ReplaceEntity/054_03.robot @@ -26,6 +26,7 @@ ${expectation_filename} building-minimal-with-two-scopes.json ... content_type=${CONTENT_TYPE_JSON} ... context=${ngsild_test_suite_context} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Entity by Id ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_01.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_01.robot index cb9f8934f..22b1bbac6 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_01.robot @@ -31,6 +31,7 @@ Append Attributes Without Params [Arguments] ${status_code} ${fragment_filename} ${expectation_filename} ${response}= Append Entity Attributes ${entity_id} ${fragment_filename} ${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response1}= Retrieve Entity by Id ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_06.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_06.robot index b9de0b2de..4f1ad98ab 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_06.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_06.robot @@ -28,6 +28,7 @@ Append Attributes Without Params [Arguments] ${status_code} ${fragment_filename} ${expectation_filename} ${response}= Append Entity Attributes ${entity_id} ${fragment_filename} ${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response1}= Retrieve Entity by Id ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_07.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_07.robot index a9520bdaf..5873c3711 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_07.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_07.robot @@ -25,6 +25,7 @@ ${scope_fragment_filename}= one-scope-fragment.json ... ${scope_fragment_filename} ... ${CONTENT_TYPE_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${expectation_filename}= Set Variable building-minimal-with-one-scope.json ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response}= Retrieve Entity by Id @@ -42,6 +43,7 @@ ${scope_fragment_filename}= one-scope-fragment.json ... ${CONTENT_TYPE_JSON} ... noOverwrite Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${expectation_filename}= Set Variable building-minimal-with-two-scopes.json ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response}= Retrieve Entity by Id diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_08.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_08.robot index f625be32a..e664fd777 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_08.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_08.robot @@ -26,6 +26,7 @@ ${expectation_filename}= building-observation-space-geoproper ... ${observation_space_fragment_filename} ... ${CONTENT_TYPE_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response}= Retrieve Entity by Id ... ${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_09.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_09.robot index 6e78b67c6..3f0f42cf9 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_09.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_09.robot @@ -26,6 +26,7 @@ ${expectation_filename}= building-operation-space-geoproperty ... ${operation_space_fragment_filename} ... ${CONTENT_TYPE_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response}= Retrieve Entity by Id ... ${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_01.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_01.robot index 96648d8a1..a5f8a687e 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_01.robot @@ -40,6 +40,7 @@ Delete Attributes ... context=${ngsild_test_suite_context} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response2}= Retrieve Entity by Id ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_04.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_04.robot index c4793c28b..c1ea0267c 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_04.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_04.robot @@ -26,6 +26,7 @@ ${expectation_filename}= building-minimal-compacted.json ... ${EMPTY} ... false Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response}= Retrieve Entity by Id ... ${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_05.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_05.robot index 82cee02c1..5250755a2 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_05.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_05.robot @@ -26,6 +26,7 @@ ${expectation_filename}= building-minimal-compacted.json ... ${EMPTY} ... false Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response}= Query Entity ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_06.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_06.robot index c7952056c..45cd2b720 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_06.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute/013_06.robot @@ -26,6 +26,7 @@ ${expectation_filename}= building-minimal-compacted.json ... ${EMPTY} ... false Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response}= Query Entity ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_01.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_01.robot index cd86697d6..38e4c6ab6 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_01.robot @@ -35,6 +35,7 @@ Update Attributes ... fragment_filename=${fragment_filename} ... content_type=${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response1}= Retrieve Entity by Id ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_04.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_04.robot index ebbd6c472..dbafcc0ec 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_04.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_04.robot @@ -33,6 +33,7 @@ Update Attributes ... fragment_filename=${fragment_filename} ... content_type=${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response1}= Retrieve Entity by Id ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_05.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_05.robot index 9779ba3a7..47e7b8e0e 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_05.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_05.robot @@ -46,6 +46,7 @@ Update Attributes ... content_type=${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Entity by Id ... id=${entity_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_06.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_06.robot index 30d494b2f..b65ce263c 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_06.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_06.robot @@ -46,6 +46,7 @@ Update Attributes ... content_type=${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Entity by Id ... id=${entity_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_07.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_07.robot index 67074f83b..abbfedacb 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_07.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/PartialAttributeUpdate/012_07.robot @@ -46,6 +46,7 @@ Update Attributes ... content_type=${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Entity by Id ... id=${entity_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/ReplaceEntityAttribute/055_01.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/ReplaceEntityAttribute/055_01.robot index f5a9724b7..073369e2f 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/ReplaceEntityAttribute/055_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/ReplaceEntityAttribute/055_01.robot @@ -39,6 +39,7 @@ Replace Entity Attribute ... content_type=${CONTENT_TYPE_JSON} ... context=${ngsild_test_suite_context} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Entity by Id ... id=${entity_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/ReplaceEntityAttribute/055_02.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/ReplaceEntityAttribute/055_02.robot index 5b4ae8915..c7115c609 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/ReplaceEntityAttribute/055_02.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/ReplaceEntityAttribute/055_02.robot @@ -39,6 +39,7 @@ Replace Multi Instance Entity Attribute ... content_type=${CONTENT_TYPE_JSON} ... context=${ngsild_test_suite_context} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Entity by Id ... id=${entity_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_01.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_01.robot index c7851b32f..0de6feb84 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_01.robot @@ -40,6 +40,7 @@ Update Attributes ... ${fragment_filename} ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${entity_expectation_payload}= Load Test Sample entities/${expectation_filename} ${entity_id} ${response1}= Retrieve Entity by Id ... id=${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_05.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_05.robot index b26ae6065..86c63bf82 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_05.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_05.robot @@ -24,6 +24,7 @@ ${scope_fragment_filename}= one-scope-fragment.json ... ${scope_fragment_filename} ... ${CONTENT_TYPE_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${expectation_filename}= Set Variable building-minimal-with-one-scope.json ${entity_expectation_payload}= Load Test Sample entities/expectations/${expectation_filename} ${entity_id} ${response}= Retrieve Entity by Id diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_06.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_06.robot index 27838eeb1..dda974e8b 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_06.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_06.robot @@ -39,6 +39,7 @@ Append Types to an Entity ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response}= Retrieve Entity by Id ... ${entity_id} ... accept=${CONTENT_TYPE_JSON} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_07.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_07.robot index f4339e354..6308bbf5f 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_07.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_07.robot @@ -44,6 +44,7 @@ Update Attributes ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Entity by Id ... id=${entity_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_08.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_08.robot index f0b461752..aea4410fc 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_08.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_08.robot @@ -44,6 +44,7 @@ Update Attributes ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Entity by Id ... id=${entity_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_09.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_09.robot index 7e8d48aa5..b50e52fd3 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_09.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes/011_09.robot @@ -44,6 +44,7 @@ Update Attributes ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Entity by Id ... id=${entity_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/CreateTemporalRepresentationOfEntity/007_01.robot b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/CreateTemporalRepresentationOfEntity/007_01.robot index 2e30ee5f9..aae412464 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/CreateTemporalRepresentationOfEntity/007_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/CreateTemporalRepresentationOfEntity/007_01.robot @@ -32,6 +32,7 @@ Create Temporal Entity ... content_type=${content_type} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} ${created_temporal_entity}= Load Test Sample ... temporalEntities/${filename} ... ${temporal_entity_representation_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/DeleteTemporalRepresentationOfEntity/009_01.robot b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/DeleteTemporalRepresentationOfEntity/009_01.robot index 2cb8ededc..4273f6905 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/DeleteTemporalRepresentationOfEntity/009_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/DeleteTemporalRepresentationOfEntity/009_01.robot @@ -21,6 +21,7 @@ ${filename}= vehicle-temporal-representation.jsonld ${response}= Delete Temporal Representation Of Entity With Returning Response ... ${temporal_entity_representation_id} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Temporal Representation Of Entity ... temporal_entity_representation_id=${temporal_entity_representation_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/UpdateTemporalRepresentationOfEntity/008_01.robot b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/UpdateTemporalRepresentationOfEntity/008_01.robot index 398c2e551..2a3aabf5e 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/UpdateTemporalRepresentationOfEntity/008_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/UpdateTemporalRepresentationOfEntity/008_01.robot @@ -27,6 +27,7 @@ ${expectation_filename}= vehicle-temporal-representation-update.jsonld ... content_type=${CONTENT_TYPE_LD_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${temporal_entity_expectation_payload}= Load Test Sample ... temporalEntities/expectations/${expectation_filename} ... ${temporal_entity_representation_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/AddAttributes/014_01.robot b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/AddAttributes/014_01.robot index 23a9b371c..e5f2ad896 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/AddAttributes/014_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/AddAttributes/014_01.robot @@ -27,6 +27,7 @@ ${expectation_filename}= vehicle-temporal-representation-added-attribute.json ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${temporal_entity_expectation_payload}= Load Test Sample ... temporalEntities/expectations/${expectation_filename} ... ${temporal_entity_representation_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/DeleteAttribute/015_01.robot b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/DeleteAttribute/015_01.robot index aa1e6b125..d9a7ae93f 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/DeleteAttribute/015_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/DeleteAttribute/015_01.robot @@ -41,6 +41,7 @@ Delete Attribute From A Temporal Entity ... context=${ngsild_test_suite_context} Check Response Status Code ${status_code} ${response.status_code} + Check Response Body Is Empty ${response} ${temporal_entity_expectation_payload}= Load Test Sample ... temporalEntities/expectations/${expectation_filename} ... ${temporal_entity_representation_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/DeleteAttributeInstance/017_01.robot b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/DeleteAttributeInstance/017_01.robot index 105ed76b7..f2dbb4e70 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/DeleteAttributeInstance/017_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/DeleteAttributeInstance/017_01.robot @@ -35,6 +35,7 @@ ${expectation_filename}= vehicle-temporal-representation-delete-speed-instanc ... ${ngsild_test_suite_context} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${temporal_entity_expectation_payload}= Load Test Sample ... temporalEntities/expectations/${expectation_filename} ... ${temporal_entity_representation_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/PartialUpdateAttributeInstance/016_01.robot b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/PartialUpdateAttributeInstance/016_01.robot index d8c1ee172..f66884788 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/PartialUpdateAttributeInstance/016_01.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/PartialUpdateAttributeInstance/016_01.robot @@ -37,6 +37,7 @@ ${attributeId}= speed ... ${ngsild_test_suite_context} Check Response Status Code 204 ${response2.status_code} + Check Response Body Is Empty ${response2} ${temporal_entity_expectation_payload}= Load Test Sample ... temporalEntities/expectations/${expectation_filename} ... ${temporal_entity_representation_id} diff --git a/TP/NGSI-LD/ContextInformation/Subscription/DeleteSubscription/032_03.robot b/TP/NGSI-LD/ContextInformation/Subscription/DeleteSubscription/032_03.robot index a092939dc..ab7cc0f13 100644 --- a/TP/NGSI-LD/ContextInformation/Subscription/DeleteSubscription/032_03.robot +++ b/TP/NGSI-LD/ContextInformation/Subscription/DeleteSubscription/032_03.robot @@ -19,6 +19,7 @@ ${subscription_payload_file_path}= subscriptions/subscription.jsonld [Tags] sub-delete 5_8_5 ${response}= Delete Subscription ${subscription_id} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Subscription ... id=${subscription_id} Check SUT Not Containing Resource ${response1.status_code} diff --git a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_05.robot b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_05.robot index b1c38a781..6c0b66486 100644 --- a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_05.robot +++ b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_05.robot @@ -27,6 +27,7 @@ ${expected_expanded_subscription_payload_file_path}= subscriptions/expectatio ... ${CONTENT_TYPE_JSON} ... context=${ngsild_test_suite_context} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Subscription ... id=${subscription_id} ... context=${ngsild_test_suite_context} @@ -44,6 +45,7 @@ ${expected_expanded_subscription_payload_file_path}= subscriptions/expectatio ... ${CONTENT_TYPE_JSON} ... context=${ngsild_test_suite_context} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Subscription ... id=${subscription_id} Check Response Body Containing Subscription element diff --git a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_06.robot b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_06.robot index 003a5802a..e021b6c92 100644 --- a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_06.robot +++ b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_06.robot @@ -25,6 +25,7 @@ ${subscription_update_fragment_file_path}= subscriptions/fragments/subscrip ... ${CONTENT_TYPE_JSON} ... context=${ngsild_test_suite_context} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${subscription_update_fragment}= Load Test Sample ${subscription_update_fragment_file_path} ${subscription}= Upsert Element In Entity ${subscription_payload} ${subscription_update_fragment} ${response1}= Retrieve Subscription diff --git a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_07.robot b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_07.robot index 6f7f021c3..beabf2730 100644 --- a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_07.robot +++ b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_07.robot @@ -30,6 +30,7 @@ Activate Paused Subscription With isActive Member ... ${subscription_update_fragment_file_path} ... ${CONTENT_TYPE_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Subscription ... id=${subscription_id} Check Response Body Containing an Attribute set to diff --git a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_08.robot b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_08.robot index 5ad4cbf5b..818393a0c 100644 --- a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_08.robot +++ b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_08.robot @@ -30,6 +30,7 @@ Activate Paused Subscription With isActive And ExpiresAt Members ... ${subscription_update_fragment_file_path} ... ${CONTENT_TYPE_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Subscription ... id=${subscription_id} Check Response Body Containing an Attribute set to diff --git a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_09.robot b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_09.robot index 2748e5ed6..d340616f5 100644 --- a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_09.robot +++ b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_09.robot @@ -24,6 +24,7 @@ ${subscription_update_fragment_file_path}= subscriptions/fragments/subscrip ... ${subscription_update_fragment_file_path} ... ${CONTENT_TYPE_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Subscription ... id=${subscription_id} Check Response Body Containing an Attribute set to diff --git a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_10.robot b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_10.robot index 2d5ebb42c..fb9d0a051 100644 --- a/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_10.robot +++ b/TP/NGSI-LD/ContextInformation/Subscription/UpdateSubscription/029_10.robot @@ -35,6 +35,7 @@ ${subscription_update_fragment_file_path} subscriptions/fragments/subscrip ... ${subscription_update_fragment_file_path} ... ${CONTENT_TYPE_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Subscription ... id=${subscription_id} Check Response Body Containing an Attribute set to diff --git a/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_01.robot b/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_01.robot index 4db4751a9..2b746db62 100644 --- a/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_01.robot +++ b/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_01.robot @@ -23,6 +23,7 @@ ${registration_payload_file_path}= context-source-registration.jsonld ${response}= Delete Context Source Registration With Return ${registration_id} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_02.robot b/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_02.robot index 5c808ab2b..8e5296160 100644 --- a/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_02.robot +++ b/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_02.robot @@ -30,6 +30,7 @@ Delete A Context Source [Arguments] ${invalid_registration_id} ${expected_status_code} ${problem_type} ${response}= Delete Context Source Registration With Return ${invalid_registration_id} Check Response Status Code ${expected_status_code} ${response.status_code} + Check Response Body Is Empty ${response} IF "${problem_type}"!="${EMPTY}" Check Response Body Containing ProblemDetails Element Containing Type Element set to ... ${response.json()} diff --git a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_01.robot b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_01.robot index 7d8cd5318..359511209 100644 --- a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_01.robot +++ b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_01.robot @@ -24,6 +24,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi ${registration_payload}= Update Value To JSON ${payload} $..id ${registration_id} ${response}= Create Context Source Registration With Return ${registration_payload} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_02.robot b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_02.robot index 71ef3c4cd..f3d822c9a 100644 --- a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_02.robot +++ b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_02.robot @@ -24,6 +24,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi ${registration_payload}= Update Value To JSON ${payload} $..id ${registration_id} ${response}= Create Context Source Registration With Return ${registration_payload} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${registration_id} ${response.headers} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} diff --git a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_03.robot b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_03.robot index 0f3974d15..4cbc3f27c 100644 --- a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_03.robot +++ b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_03.robot @@ -20,6 +20,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi ${payload}= Load JSON From File ${EXECDIR}/data/${registration_payload_file_path} ${response}= Create Context Source Registration With Return ${payload} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} ${registration_id}= Check Response Headers ID Not Empty ${response.headers} Set Suite Variable ${registration_id} ${id_dict}= Create Dictionary id=${registration_id} diff --git a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_04.robot b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_04.robot index 764c9c518..86f49ecc3 100644 --- a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_04.robot +++ b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_04.robot @@ -27,6 +27,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi ... ${CONTENT_TYPE_JSON} ... ${ngsild_test_suite_context} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} ... context=${ngsild_test_suite_context} @@ -47,6 +48,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi ... ${CONTENT_TYPE_JSON} ... ${ngsild_test_suite_context} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} Check JSON Value In Response Body diff --git a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_05.robot b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_05.robot index 4732aea51..c83383b34 100644 --- a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_05.robot +++ b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_05.robot @@ -26,6 +26,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi ... ${updated_payload} ... ${CONTENT_TYPE_JSON} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} ... context=${ngsild_test_suite_context} @@ -45,6 +46,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi ... ${updated_payload} ... ${CONTENT_TYPE_JSON} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} Check JSON Value In Response Body diff --git a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_07.robot b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_07.robot index ed0689e12..1cc60971d 100644 --- a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_07.robot +++ b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_07.robot @@ -26,6 +26,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi ... ${updated_payload} ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} ... context=${ngsild_test_suite_context} @@ -45,6 +46,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi ... ${updated_payload} ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} Check JSON Value In Response Body diff --git a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_01.robot b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_01.robot index fb7043569..1b97de966 100644 --- a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_01.robot +++ b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_01.robot @@ -30,6 +30,7 @@ Update A Context Source ... ${registration_update_fragment} ... ${CONTENT_TYPE_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} Check JSON Value In Response Body diff --git a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_05.robot b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_05.robot index 2d4b4e7f4..1d624e9d9 100644 --- a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_05.robot +++ b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_05.robot @@ -30,6 +30,7 @@ Update A Context Source ... ${registration_update_fragment} ... ${CONTENT_TYPE_JSON} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} Check JSON Value Not In Response Body diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_01.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_01.robot index 58762a262..a3b08b2d4 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_01.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_01.robot @@ -21,6 +21,7 @@ ${subscription_payload_file_path}= csourceSubscriptions/subscription.jsonld ${subscription_payload}= Load Test Sample ${subscription_payload_file_path} ${subscription_id} ${response}= Create Context Source Registration Subscription ${subscription_payload} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${subscription_id} ${response.headers} ${response1}= Retrieve Context Source Registration Subscription ... subscription_id=${subscription_id} diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_02.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_02.robot index 48da4ed16..e50bf18ff 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_02.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_02.robot @@ -26,6 +26,7 @@ ${subscription_id}= ${EMPTY} Set Suite Variable ${subscription_id} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration Subscription ... subscription_id=${subscription_id} diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_03.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_03.robot index 9019a2cd1..1d0564e61 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_03.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_03.robot @@ -21,6 +21,7 @@ ${subscription_payload_file_path}= csourceSubscriptions/subscription.jsonld ${subscription_payload}= Load Test Sample ${subscription_payload_file_path} ${subscription_id} ${response}= Create Context Source Registration Subscription ${subscription_payload} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${subscription_id} ${response.headers} ${response1}= Retrieve Context Source Registration Subscription ... subscription_id=${subscription_id} diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_04.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_04.robot index 0a2691235..9d5e58363 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_04.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_04.robot @@ -21,6 +21,7 @@ ${subscription_payload_file_path}= csourceSubscriptions/subscription-inacti ${subscription_payload}= Load Test Sample ${subscription_payload_file_path} ${subscription_id} ${response}= Create Context Source Registration Subscription ${subscription_payload} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${subscription_id} ${response.headers} ${response1}= Retrieve Context Source Registration Subscription ... subscription_id=${subscription_id} diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_05.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_05.robot index 9a251162a..63711cf74 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_05.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_05.robot @@ -24,6 +24,7 @@ ${subscription_payload_file_path}= csourceSubscriptions/subscription-expire ${subscription_payload}= Update Value To JSON ${subscription_payload_sample} $..expiresAt ${expiresAt} ${response}= Create Context Source Registration Subscription ${subscription_payload} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${subscription_id} ${response.headers} Sleep 15s diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_06.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_06.robot index 1ce57412a..bc68ba432 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_06.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/CreateContextSourceRegistrationSubscription/038_06.robot @@ -21,6 +21,7 @@ ${subscription_payload_file_path}= csourceSubscriptions/subscription.jsonld ${subscription_payload}= Load Test Sample ${subscription_payload_file_path} ${subscription_id} ${response}= Create Context Source Registration Subscription ${subscription_payload} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Headers Containing URI set to ${subscription_id} ${response.headers} # Let's say if the subscription stills active after 10s it will be considered as perpetual, but this is not enough Sleep 10s diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/DeleteContextSourceRegistrationSubscription/042_01.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/DeleteContextSourceRegistrationSubscription/042_01.robot index 22580179f..340ffb040 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/DeleteContextSourceRegistrationSubscription/042_01.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/DeleteContextSourceRegistrationSubscription/042_01.robot @@ -19,6 +19,7 @@ ${subscription_payload_file_path}= csourceSubscriptions/subscription.jsonld [Tags] csrsub-delete 5_11_6 ${response}= Delete Context Source Registration Subscription ${subscription_id} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} ${response1}= Retrieve Context Source Registration Subscription ... subscription_id=${subscription_id} ... context=${ngsild_test_suite_context} diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/039_01.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/039_01.robot index 21c60e734..8f393da92 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/039_01.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/039_01.robot @@ -24,6 +24,7 @@ ${subscription_update_fragment_file_path}= csourceSubscriptions/fragments/s ... ${subscription_id} ... ${subscription_update_fragment} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Does Not Contain Body ${response} Check Response Reason set to ${response.reason} No Content diff --git a/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_01.robot b/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_01.robot index b1deb126e..80e1b3212 100644 --- a/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_01.robot +++ b/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_01.robot @@ -34,6 +34,7 @@ Add a valid @context ${response}= Add a new @context ${filename} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Does Not Contain Body ${response} Check Response Reason set to ${response.reason} ${reason_201} diff --git a/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_04.robot b/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_04.robot index 8de4524a3..3a424dcc1 100644 --- a/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_04.robot +++ b/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_04.robot @@ -27,6 +27,7 @@ ${content_type}= application/json ${response}= Add a new @context ${filename_list} Check Response Status Code 201 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Does Not Contain Body ${response} Check Response Reason set to ${response.reason} ${reason_201} diff --git a/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_01.robot b/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_01.robot index 76db2a75b..f8b7cb877 100644 --- a/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_01.robot +++ b/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_01.robot @@ -21,6 +21,7 @@ ${reason_204}= No Content ${response}= Delete a @context ${uri} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Reason set to ${response.reason} ${reason_204} Check Response Does Not Contain Body ${response} diff --git a/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_03.robot b/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_03.robot index 5de3ac093..df7603b7f 100644 --- a/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_03.robot +++ b/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_03.robot @@ -27,6 +27,7 @@ ${reason_204}= No Content ${response}= Delete a @context ${contextId} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Reason set to ${response.reason} ${reason_204} Check Response Does Not Contain Body ${response} diff --git a/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_06.robot b/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_06.robot index f9df65d8b..0912fee7a 100644 --- a/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_06.robot +++ b/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_06.robot @@ -23,6 +23,7 @@ ${reason_204}= No Content ${response}= Delete a @context ${implicit_id} Check Response Status Code 204 ${response.status_code} + Check Response Body Is Empty ${response} Check Response Reason set to ${response.reason} ${reason_204} Check Response Does Not Contain Body ${response} diff --git a/resources/AssertionUtils.resource b/resources/AssertionUtils.resource index 5e4991c57..ca5ca922f 100755 --- a/resources/AssertionUtils.resource +++ b/resources/AssertionUtils.resource @@ -59,6 +59,11 @@ Check Response Body Content ... ${all_ignored_paths} Should Be Empty ${comparison_result} msg=${comparison_result.pretty()} +Check Response Body Is Empty + [Arguments] ${response} + ${response_text}= Convert To String ${response.text} + Should Be Empty ${response_text} + Check Response Headers Containing Content-Type set to [Arguments] ${expected_content_type_content} ${response_headers} Should Be Equal ${response_headers['Content-Type']} ${expected_content_type_content} -- GitLab