Loading TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001.robot +0 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ Create Entity Scenarios [Tags] mandatory entityOperations ${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity}= Load Entity ${filename} ${entity_id} Create Entity Selecting Content Type ${filename} ${entity_id} ${content_type} Check Response Status Code Set To 201 Loading TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/003.robot 0 → 100644 +26 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that you cannot create an entity with and existing id Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource *** Variable *** ${building_id_prefix}= urn:ngsi-ld:Building: ${expected_error_message}= Already exists. *** Test Case *** Create one valid entity and one invalid entity [Documentation] Check that you cannot create an entity with and existing id [Tags] mandatory ${entity_id}= Generate Random Entity Id ${building_id_prefix} Create Entity building-minimal-sample.jsonld ${entity_id} Check Response Status Code Set To 201 #creating entity with the same id Create Entity building-minimal-sample.jsonld ${entity_id} Check Response Status Code Set To 409 Check Response Body Details Containing Information Error ${expected_error_message} [Teardown] Delete Entity by Id ${entity_id} resources/AssertionUtils.resource +4 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,10 @@ Check Response Body Containing an Attribute set to [Arguments] ${expected_attribute_name} Should Not Be Empty ${response['body']['${expected_attribute_name}']} Check Response Body Details Containing Information Error [Arguments] ${expected_error_message} Should be Equal ${expected_error_message} ${response['body']['details']} Check Response Body Containing Batch Operation Result [Arguments] ${expected_batch_operation_result} @{expected_successful_entities_ids}= Get From Dictionary ${expected_batch_operation_result} success Loading Loading
TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001.robot +0 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ Create Entity Scenarios [Tags] mandatory entityOperations ${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity}= Load Entity ${filename} ${entity_id} Create Entity Selecting Content Type ${filename} ${entity_id} ${content_type} Check Response Status Code Set To 201 Loading
TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/003.robot 0 → 100644 +26 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that you cannot create an entity with and existing id Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource *** Variable *** ${building_id_prefix}= urn:ngsi-ld:Building: ${expected_error_message}= Already exists. *** Test Case *** Create one valid entity and one invalid entity [Documentation] Check that you cannot create an entity with and existing id [Tags] mandatory ${entity_id}= Generate Random Entity Id ${building_id_prefix} Create Entity building-minimal-sample.jsonld ${entity_id} Check Response Status Code Set To 201 #creating entity with the same id Create Entity building-minimal-sample.jsonld ${entity_id} Check Response Status Code Set To 409 Check Response Body Details Containing Information Error ${expected_error_message} [Teardown] Delete Entity by Id ${entity_id}
resources/AssertionUtils.resource +4 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,10 @@ Check Response Body Containing an Attribute set to [Arguments] ${expected_attribute_name} Should Not Be Empty ${response['body']['${expected_attribute_name}']} Check Response Body Details Containing Information Error [Arguments] ${expected_error_message} Should be Equal ${expected_error_message} ${response['body']['details']} Check Response Body Containing Batch Operation Result [Arguments] ${expected_batch_operation_result} @{expected_successful_entities_ids}= Get From Dictionary ${expected_batch_operation_result} success Loading