Commit b5c43d3b authored by Patricia dos Santos Oliveira's avatar Patricia dos Santos Oliveira
Browse files

Add minor fixes

parent 539a6a96
Loading
Loading
Loading
Loading
+3 −2
Changes for TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/AlreadyExists.robot: 3 added lines, 2 removed lines.
Original line number Original line Diff line number Diff line
*** Settings ***
*** Settings ***
Documentation   Check that the IUT refuses to create an entity if one exists with the same identifier 
Documentation   Check that the IUT refuses to create an entity if one exists with the same identifier 
Variables   ../../../../../../resources/variables.py
Variables   ../../../../../../resources/variables.py
#Resource    ../../../../../../resources/ApiUtils.resource
Library     REST    ${url}
Library     REST    ${url}
Library     JSONSchemaLibrary   ${CURDIR}/schemas
Library     JSONSchemaLibrary   ${CURDIR}/schemas
Library     OperatingSystem
Library     BuiltIn
Library     String


#Suite Setup      Create Entity  building-minimal.jsonld
#Suite Setup      Create Entity  building-minimal.jsonld
#Suite Teardown   Delete Entity by Id  urn:ngsi-ld:Building:3009ef20-9f62-41f5-bd66-92f041b428b9
#Suite Teardown   Delete Entity by Id  urn:ngsi-ld:Building:3009ef20-9f62-41f5-bd66-92f041b428b9
@@ -15,6 +15,7 @@ ${endpoint}= entities
*** Test Case ***
*** Test Case ***
AlreadyExists
AlreadyExists
    [Documentation]  Check that the IUT refuses to create an entity if one exists with the same identifier 
    [Documentation]  Check that the IUT refuses to create an entity if one exists with the same identifier 
    [Tags]  critical  
    Create Entity  building-minimal.jsonld
    Create Entity  building-minimal.jsonld
    Create Entity  building-minimal.jsonld
    Create Entity  building-minimal.jsonld
    Check HTTP Status Code Is  409
    Check HTTP Status Code Is  409
−2
Changes for TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/SuccessCases-datadriven.robot: 0 added lines, 2 removed lines.
Original line number Original line Diff line number Diff line
@@ -3,8 +3,6 @@ Documentation Check that the IUT accepts the creation of an entity
Variables   ../../../../../../resources/variables.py
Variables   ../../../../../../resources/variables.py
Library     REST    ${url}
Library     REST    ${url}
Library     JSONSchemaLibrary   ${CURDIR}/schemas
Library     JSONSchemaLibrary   ${CURDIR}/schemas
Library     OperatingSystem
Library     String


Test Template  Create Entity Scenarios  
Test Template  Create Entity Scenarios  


+1 −10
Changes for TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/SuccessCases.robot: 1 added line, 10 removed lines.
Original line number Original line Diff line number Diff line
*** Settings ***
*** Settings ***
Documentation   Check that the IUT accepts the creation of an entity 
Documentation   Check that the IUT accepts the creation of an entity 
Variables   ../../../../../../resources/variables.py
Variables   ../../../../../../resources/variables.py
#Resource    ../../../../../../resources/ApiUtils.resource
Library     REST    ${url}
Library     REST    ${url}
Library     JSONSchemaLibrary   ${CURDIR}/schemas
Library     OperatingSystem
Library     String


*** Variable ***
*** Variable ***
${endpoint}=    entities
${endpoint}=    entities
@@ -39,13 +37,6 @@ Check HTTP Status Code Is
    ${response_status}=  convert to string  ${response['status']}
    ${response_status}=  convert to string  ${response['status']}
    Should Be Equal  ${response_status}  ${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
Delete Entity by Id
    [Arguments]  ${id}    
    [Arguments]  ${id}    
    &{headers}=  Create Dictionary  authorization=Bearer ${token}
    &{headers}=  Create Dictionary  authorization=Bearer ${token}
−2
Changes for requirements.txt: 0 added lines, 2 removed lines.
Original line number Original line Diff line number Diff line
robotframework==3.2.1
robotframework==3.2.1
RESTinstance==1.0.2
RESTinstance==1.0.2
robotframework-jsonschemalibrary==1.0
robotframework-jsonschemalibrary==1.0
robotframework-pabot==1.8.0
+5 −5

File changed.

Preview size limit exceeded, changes collapsed.

Loading