Commit 332c6373 authored by poujol's avatar poujol
Browse files

Merge branch 'chore/always-use-arguments-when-using-function' into 'develop'

chore: always use arguments when using function

See merge request !80
parents 7b8691da c4de824d
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -115,6 +115,10 @@ For more running instructions please consult [scripts/run_tests.sh](./scripts/ru


```$ python3 -m robot.testdoc TP/NGSI-LD api_docs/TestCases.html```
```$ python3 -m robot.testdoc TP/NGSI-LD api_docs/TestCases.html```


## Tidy the Test Cases

```$ python3 -m robot.tidy --recursive TP/NGSI-LD```

# Frameworks and libraries used in the project
# Frameworks and libraries used in the project


* [Robot Framework](https://github.com/robotframework/robotframework)
* [Robot Framework](https://github.com/robotframework/robotframework)
+4 −4
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@ ${content_type}= application/json
    Check Response Status Code    201    ${response.status_code}
    Check Response Status Code    201    ${response.status_code}
    ${response}=    Query Entity    ${id}    context=${ngsild_test_suite_context}    accept=*/*
    ${response}=    Query Entity    ${id}    context=${ngsild_test_suite_context}    accept=*/*
    Check Response Status Code    200    ${response.status_code}
    Check Response Status Code    200    ${response.status_code}
    Check Response Headers Containing Content-Type set to    ${response.headers}    ${content_type}
    Check Response Headers Containing Content-Type set to    ${content_type}    ${response.headers}
    Check Response Headers Link Not Empty    ${response.headers}
    Check Response Headers Link Not Empty    ${response.headers}
    [Teardown]    Delete Entity by Id Returning Response    ${id}
    [Teardown]    Delete Entity by Id Returning Response    ${id}


@@ -44,7 +44,7 @@ ${content_type}= application/json
    Check Response Status Code    201    ${response.status_code}
    Check Response Status Code    201    ${response.status_code}
    ${response}=    Retrieve Subscription    ${id}    accept=*/*
    ${response}=    Retrieve Subscription    ${id}    accept=*/*
    Check Response Status Code    200    ${response.status_code}
    Check Response Status Code    200    ${response.status_code}
    Check Response Headers Containing Content-Type set to    ${response.headers}    ${content_type}
    Check Response Headers Containing Content-Type set to    ${content_type}    ${response.headers}
    Check Response Headers Link Not Empty    ${response.headers}
    Check Response Headers Link Not Empty    ${response.headers}
    [Teardown]    Delete Subscription    ${id}
    [Teardown]    Delete Subscription    ${id}


@@ -62,7 +62,7 @@ ${content_type}= application/json
    ...    context=${ngsild_test_suite_context}
    ...    context=${ngsild_test_suite_context}
    ...    accept=*/*
    ...    accept=*/*
    Check Response Status Code    200    ${response.status_code}
    Check Response Status Code    200    ${response.status_code}
    Check Response Headers Containing Content-Type set to    ${response.headers}    ${content_type}
    Check Response Headers Containing Content-Type set to    ${content_type}    ${response.headers}
    Check Response Headers Link Not Empty    ${response.headers}
    Check Response Headers Link Not Empty    ${response.headers}
    [Teardown]    Delete Context Source Registration    ${registration_id}
    [Teardown]    Delete Context Source Registration    ${registration_id}


@@ -83,6 +83,6 @@ ${content_type}= application/json
    ...    accept=*/*
    ...    accept=*/*
    Check Response Status Code    200    ${response.status_code}
    Check Response Status Code    200    ${response.status_code}
    Set Test Variable    ${response}
    Set Test Variable    ${response}
    Check Response Headers Containing Content-Type set to    ${response.headers}    ${content_type}
    Check Response Headers Containing Content-Type set to    ${content_type}    ${response.headers}
    Check Response Headers Link Not Empty    ${response.headers}
    Check Response Headers Link Not Empty    ${response.headers}
    [Teardown]    Delete Temporal Representation Of Entity    ${temporal_entity_representation_id}
    [Teardown]    Delete Temporal Representation Of Entity    ${temporal_entity_representation_id}
+0 −1
Original line number Original line Diff line number Diff line
@@ -26,7 +26,6 @@ Retrieve Detailed Representation Of Available Attribute Without Context
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}





*** Keywords ***
*** Keywords ***
Setup Initial Entities
Setup Initial Entities
    ${entity_id}=    Generate Random Entity Id    ${building_id_prefix}
    ${entity_id}=    Generate Random Entity Id    ${building_id_prefix}
+1 −1
Original line number Original line Diff line number Diff line
@@ -21,7 +21,7 @@ Retrieve Detailed Representation Of Available Attribute
    [Tags]    ed-attr    5_7_10
    [Tags]    ed-attr    5_7_10
    ${response}=    Retrieve Attribute    attribute_name=airQualityLevel    context=${ngsild_test_suite_context}
    ${response}=    Retrieve Attribute    attribute_name=airQualityLevel    context=${ngsild_test_suite_context}
    Check Response Status Code    200    ${response.status_code}
    Check Response Status Code    200    ${response.status_code}
    Check Response Body Containing Attribute element    ${expectation_file}
    Check Response Body Containing Attribute element    ${expectation_file}    ${response.json()}




*** Keywords ***
*** Keywords ***
+1 −1
Original line number Original line Diff line number Diff line
@@ -29,7 +29,7 @@ Retrieve Available Attributes
    [Arguments]    ${context}    ${expectation_file}
    [Arguments]    ${context}    ${expectation_file}
    ${response}=    Retrieve Attributes    ${context}
    ${response}=    Retrieve Attributes    ${context}
    Check Response Status Code    200    ${response.status_code}
    Check Response Status Code    200    ${response.status_code}
    Check Response Body Containing AttributeList element    ${expectation_file}
    Check Response Body Containing AttributeList element    ${expectation_file}    ${response.json()}


Setup Initial Entities
Setup Initial Entities
    ${entity_id}=    Generate Random Entity Id    ${building_id_prefix}
    ${entity_id}=    Generate Random Entity Id    ${building_id_prefix}
Loading