Loading TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity.robot +53 Changes for TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity.robot: 53 added lines, 0 removed lines. Original line number Diff line number Diff line *** Settings *** Documentation TP description. Variables ../../../../../resources/variables.py Library REST ${url} Library JSONSchemaLibrary ${CURDIR}/schemas Library OperatingSystem Library String #Suite Setup Suite Teardown Delete Entity by Id urn:ngsi-ld:Building:3009ef20-9f62-41f5-bd66-92f041b428b9 *** Variable *** ${endpoint}= entities *** Test Case *** CreateEntity_200_Minimal [Documentation] TP Variation description. [Tags] critical Create Entity building-minimal.jsonld Check HTTP Status Code Is 201 CreateEntity_409_AlreadyExists Create Entity building-minimal.jsonld Check HTTP Status Code Is 409 Check HTTP Response Body Json Schema Is error_response *** Keywords *** Create Entity [Arguments] ${filename} &{headers}= Create Dictionary Content-Type=application/ld+json authorization=Bearer ${token} ${response}= POST ${endpoint} body=${CURDIR}/data/${filename} headers=${headers} Output request Output response Set Test Variable ${response} Check HTTP Status Code Is [Arguments] ${status} ${response_status}= convert to string ${response['status']} Should Be Equal ${response_status} ${status} Check HTTP Response Body Json Schema Is [Arguments] ${input} Should Contain ${response['headers']['Content-Type']} application/json ${schema}= Catenate SEPARATOR= ${input} .schema.json Validate Json ${schema} ${response['body']} Log Json Schema Validation OK Delete Entity by Id [Arguments] ${id} &{headers}= Create Dictionary authorization=Bearer ${token} ${response}= DELETE ${endpoint}/${id} headers=${headers} Output request Output response No newline at end of file TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity_200.robot −44 File deleted. Show changes TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity_200_DD.robot→TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity_data-driven.robot File moved. View file TP/NGSI-LD/ContextInformation/Provision/Entities/schemas/error_response.schema.json +7 Changes for TP/NGSI-LD/ContextInformation/Provision/Entities/schemas/error_response.schema.json: 7 added lines, 0 removed lines. Original line number Diff line number Diff line { "required": [ "detail", "type", "title" ] } No newline at end of file TP/NGSI-LD/ContextInformation/Provision/Entities/schemas/response.json −73 File deleted. Show changes Loading
TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity.robot +53 Changes for TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity.robot: 53 added lines, 0 removed lines. Original line number Diff line number Diff line *** Settings *** Documentation TP description. Variables ../../../../../resources/variables.py Library REST ${url} Library JSONSchemaLibrary ${CURDIR}/schemas Library OperatingSystem Library String #Suite Setup Suite Teardown Delete Entity by Id urn:ngsi-ld:Building:3009ef20-9f62-41f5-bd66-92f041b428b9 *** Variable *** ${endpoint}= entities *** Test Case *** CreateEntity_200_Minimal [Documentation] TP Variation description. [Tags] critical Create Entity building-minimal.jsonld Check HTTP Status Code Is 201 CreateEntity_409_AlreadyExists Create Entity building-minimal.jsonld Check HTTP Status Code Is 409 Check HTTP Response Body Json Schema Is error_response *** Keywords *** Create Entity [Arguments] ${filename} &{headers}= Create Dictionary Content-Type=application/ld+json authorization=Bearer ${token} ${response}= POST ${endpoint} body=${CURDIR}/data/${filename} headers=${headers} Output request Output response Set Test Variable ${response} Check HTTP Status Code Is [Arguments] ${status} ${response_status}= convert to string ${response['status']} Should Be Equal ${response_status} ${status} Check HTTP Response Body Json Schema Is [Arguments] ${input} Should Contain ${response['headers']['Content-Type']} application/json ${schema}= Catenate SEPARATOR= ${input} .schema.json Validate Json ${schema} ${response['body']} Log Json Schema Validation OK Delete Entity by Id [Arguments] ${id} &{headers}= Create Dictionary authorization=Bearer ${token} ${response}= DELETE ${endpoint}/${id} headers=${headers} Output request Output response No newline at end of file
TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity_200.robot −44 File deleted. Show changes
TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity_200_DD.robot→TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity_data-driven.robot File moved. View file
TP/NGSI-LD/ContextInformation/Provision/Entities/schemas/error_response.schema.json +7 Changes for TP/NGSI-LD/ContextInformation/Provision/Entities/schemas/error_response.schema.json: 7 added lines, 0 removed lines. Original line number Diff line number Diff line { "required": [ "detail", "type", "title" ] } No newline at end of file
TP/NGSI-LD/ContextInformation/Provision/Entities/schemas/response.json −73 File deleted. Show changes