Loading TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_01.robot +36 Changes for TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_01.robot: 36 added lines, 0 removed lines. Original line number Diff line number Diff line *** Settings *** Documentation Check that you can create a batch of entities Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Test Template Batch Create Entity Scenarios *** Variable *** ${building_id_prefix}= urn:ngsi-ld:Building: *** Test Cases *** FILENAME MinimalEntity building-minimal-sample.jsonld EntityWithSimpleProperties building-simple-attributes-sample.jsonld EntityWithSimpleRelationships building-relationship-sample.jsonld EntityWithRelationshipsProperties building-relationship-of-property-sample.jsonld *** Keywords *** Batch Create Entity Scenarios [Arguments] ${filename} [Documentation] Check that you can create a batch of entities [Tags] mandatory entityOperations ${first_entity_id}= Generate Random Entity Id ${building_id_prefix} ${second_entity_id}= Generate Random Entity Id ${building_id_prefix} ${first_entity}= Load Entity ${filename} ${first_entity_id} ${second_entity}= Load Entity ${filename} ${second_entity_id} @{entities_to_be_created}= Create List ${first_entity} ${second_entity} Batch Create Entities @{entities_to_be_created} @{expected_entities_ids}= Create List ${first_entity_id} ${second_entity_id} Check Response Status Code Set To 201 Check Response Body Containing Array Of URIs set to @{expected_entities_ids} Batch Delete Entities @{expected_entities_ids} TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/partialSuccess.robot→TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_02.robot +4 −12 Changes for TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_02.robot: 4 added lines, 12 removed lines. Original line number Diff line number Diff line *** Settings *** Documentation Check that you can create a batch of entities where some will succeed and others will fail Variables ../../../../../../resources/variables.py Resource ../../../../../../resources/ApiUtils.resource Resource ../../../../../../resources/AssertionUtils.resource Resource ../../../../../../resources/JsonUtils.resource Library REST ${url} Library JSONLibrary Library String Library Collections Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Suite Setup Setup Initial Entities *** Variable *** ${batch_endpoint}= entityOperations/create ${batch_delete_endpoint}= entityOperations/delete ${endpoint}= entities ${building_id_prefix}= urn:ngsi-ld:Building: *** Test Case *** Create a batch of two valid entities and one invalid entity [Documentation] Check that you can create a batch of two valid entities and one invalid entity [Tags] critical [Tags] mandatory ${first_entity_id}= Generate Random Entity Id ${building_id_prefix} ${second_entity_id}= Generate Random Entity Id ${building_id_prefix} Loading TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_03.robot +21 Changes for TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_03.robot: 21 added lines, 0 removed lines. Original line number Diff line number Diff line *** Settings *** Documentation Check that you cannot create a batch of entities with an invalid request Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Test Template Create Batch Entity With Invalid Request Scenarios *** Test Cases *** FILENAME InvalidJson batch/invalid-json-sample.jsonld EmptyJson batch/empty-sample.jsonld *** Keywords *** Create Batch Entity With Invalid Request Scenarios [Arguments] ${filename} [Documentation] Check that you cannot create a batch of entities with an invalid request [Tags] mandatory Batch Request Entities From File create filename=${filename} Check RL Response Status Code Set To 400 Check RL Response Body Containing Problem Details Element Containing Detail Element ${response} TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/failure.robot −32 File deleted. Show changes TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/fullSuccess.robot −71 File deleted. Show changes Loading
TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_01.robot +36 Changes for TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_01.robot: 36 added lines, 0 removed lines. Original line number Diff line number Diff line *** Settings *** Documentation Check that you can create a batch of entities Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Test Template Batch Create Entity Scenarios *** Variable *** ${building_id_prefix}= urn:ngsi-ld:Building: *** Test Cases *** FILENAME MinimalEntity building-minimal-sample.jsonld EntityWithSimpleProperties building-simple-attributes-sample.jsonld EntityWithSimpleRelationships building-relationship-sample.jsonld EntityWithRelationshipsProperties building-relationship-of-property-sample.jsonld *** Keywords *** Batch Create Entity Scenarios [Arguments] ${filename} [Documentation] Check that you can create a batch of entities [Tags] mandatory entityOperations ${first_entity_id}= Generate Random Entity Id ${building_id_prefix} ${second_entity_id}= Generate Random Entity Id ${building_id_prefix} ${first_entity}= Load Entity ${filename} ${first_entity_id} ${second_entity}= Load Entity ${filename} ${second_entity_id} @{entities_to_be_created}= Create List ${first_entity} ${second_entity} Batch Create Entities @{entities_to_be_created} @{expected_entities_ids}= Create List ${first_entity_id} ${second_entity_id} Check Response Status Code Set To 201 Check Response Body Containing Array Of URIs set to @{expected_entities_ids} Batch Delete Entities @{expected_entities_ids}
TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/partialSuccess.robot→TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_02.robot +4 −12 Changes for TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_02.robot: 4 added lines, 12 removed lines. Original line number Diff line number Diff line *** Settings *** Documentation Check that you can create a batch of entities where some will succeed and others will fail Variables ../../../../../../resources/variables.py Resource ../../../../../../resources/ApiUtils.resource Resource ../../../../../../resources/AssertionUtils.resource Resource ../../../../../../resources/JsonUtils.resource Library REST ${url} Library JSONLibrary Library String Library Collections Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Suite Setup Setup Initial Entities *** Variable *** ${batch_endpoint}= entityOperations/create ${batch_delete_endpoint}= entityOperations/delete ${endpoint}= entities ${building_id_prefix}= urn:ngsi-ld:Building: *** Test Case *** Create a batch of two valid entities and one invalid entity [Documentation] Check that you can create a batch of two valid entities and one invalid entity [Tags] critical [Tags] mandatory ${first_entity_id}= Generate Random Entity Id ${building_id_prefix} ${second_entity_id}= Generate Random Entity Id ${building_id_prefix} Loading
TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_03.robot +21 Changes for TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_03.robot: 21 added lines, 0 removed lines. Original line number Diff line number Diff line *** Settings *** Documentation Check that you cannot create a batch of entities with an invalid request Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Test Template Create Batch Entity With Invalid Request Scenarios *** Test Cases *** FILENAME InvalidJson batch/invalid-json-sample.jsonld EmptyJson batch/empty-sample.jsonld *** Keywords *** Create Batch Entity With Invalid Request Scenarios [Arguments] ${filename} [Documentation] Check that you cannot create a batch of entities with an invalid request [Tags] mandatory Batch Request Entities From File create filename=${filename} Check RL Response Status Code Set To 400 Check RL Response Body Containing Problem Details Element Containing Detail Element ${response}
TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/failure.robot −32 File deleted. Show changes
TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/fullSuccess.robot −71 File deleted. Show changes