Provide Test Cases for @Context endpoints operations

Update @atContext TS to incorporate the since_v1.5.1 and correct the generation of the documentation to manage the case of version

PS: to be merged after 1.3 and 1.4 tag are created

Merge request reports

Loading
+18 −0
Changes for .idea/runConfigurations/jsonldContext_Consumption_Unit_Tests.xml: 18 added lines, 0 removed lines.
Original line number Diff line number Diff line
<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="jsonldContext Consumption Unit Tests" type="tests" factoryName="Autodetect">
    <module name="ngsi-ld-test-suite" />
    <option name="ENV_FILES" value="" />
    <option name="INTERPRETER_OPTIONS" value="" />
    <option name="PARENT_ENVS" value="true" />
    <option name="SDK_HOME" value="" />
    <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/doc" />
    <option name="IS_MODULE_SDK" value="true" />
    <option name="ADD_CONTENT_ROOTS" value="true" />
    <option name="ADD_SOURCE_ROOTS" value="true" />
    <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
    <option name="_new_additionalArguments" value="&quot;&quot;" />
    <option name="_new_target" value="&quot;$PROJECT_DIR$/doc/tests/test_jsonldContext_Consumption.py&quot;" />
    <option name="_new_targetType" value="&quot;PATH&quot;" />
    <method v="2" />
  </configuration>
</component>
 No newline at end of file
+18 −0

File added.

Generated files are collapsed by default. To change this behavior, edit the .gitattributes file. Learn more.

+3 −3
Changes for TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_01_01.robot: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -49,9 +49,9 @@ ${entity_type}= https://ngsi-ld-test-suite/context#Building
    ...    entity_types=${entity_types_to_be_retrieved}
    Check Response Status Code    200    ${response.status_code}
    Check Response Body Containing List Containing Entity Elements
    ...    ${expectation_filename}
    ...    ${entities_ids_to_be_compared}
    ...    ${response.json()}
    ...    expectation_filename=${expectation_filename}
    ...    entities_ids=${entities_ids_to_be_compared}
    ...    response_body=${response.json()}


*** Keywords ***
+2 −1
Changes for TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_07.robot: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -21,15 +21,16 @@ ${airQualityLevel}= airQualityLevel==6

*** Test Cases ***    Q_PARAMETER    EXPECTED_STATUS    EXPECTED_COUNT
019_07_01 Check that the total number of matching results is returned if the count parameter is set to true and only the entity type is provided
    [Tags]    e-query    5_7_2    6_3_13
    ${EMPTY}    200    2
019_07_02 Check that the total number of matching results is returned if the count parameter is set to true and a q parameter is provided
    [Tags]    e-query    5_7_2    6_3_13
    ${airQualityLevel}    200    1


*** Keywords ***
Query Entities With Count
    [Documentation]    If the count parameter is set to true the special HTTP header NGSILD-Results-Count is set in the response and it must contain the total number of matching results.
    [Tags]    e-query    5_7_2    6_3_13
    [Arguments]    ${q}    ${expected_status_code}    ${expected_count}
    ${response}=    Query Entities
    ...    entity_types=${entity_type}
+3 −1
Changes for TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/AppendEntityAttributes/010_01.robot: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -36,7 +36,9 @@ Append Attributes Without Params
    ...    id=${entity_id}
    ...    context=${ngsild_test_suite_context}
    ...    accept=${CONTENT_TYPE_LD_JSON}
    Check Updated Resource Set To    ${entity_expectation_payload}    ${response1.json()}
    Check Updated Resource Set To
    ...    updated_resource=${entity_expectation_payload}
    ...    response_body=${response1.json()}

Create Initial Entity
    ${entity_id}=    Generate Random Entity Id    ${vehicle_id_prefix}
Loading
Loading