Commit bc6e8d01 authored by poujol's avatar poujol
Browse files

feat: improve expected/actual payload when comparing data in checks

parent 08f5731e
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -107,6 +107,19 @@ Launch the tests with the following command:


For more running instructions please consult [scripts/run_tests.sh](./scripts/run_tests.sh).
For more running instructions please consult [scripts/run_tests.sh](./scripts/run_tests.sh).


## Redirect console output to have 

To have the whole messages it is necessary to modify the width of the test execution output with the option --consolewidth (-W). The default width is 78 characters.

```$ robot --consolewidth 150  .```

The messages in the console are clear and without noise, only the strictly necessary (request and response to the CB and a nice message which shows the difference between two documents when they are).
However, it can be difficult to follow all the messages in the console when there is a lot of testing and a lot of CB calls. 
This is why a command to redirect the console output to a file can be used.
You must add a chevron at the end of the test launch command followed by the file name.

```$ robot . > 'results.log```

## Generate a documentation for the support keywords
## Generate a documentation for the support keywords


```$ python3 -m robot.libdoc resources/ApiUtils.resource api_docs/ApiUtils.html```
```$ python3 -m robot.libdoc resources/ApiUtils.resource api_docs/ApiUtils.html```
+31 −0
Original line number Original line Diff line number Diff line
from dataclasses import dataclass
from deepdiff import DeepDiff
from deepdiff import DeepDiff
from prettydiff import get_annotated_lines_from_diff, diff_json, Flag
from robot.api import logger


@dataclass
class Theme:
    added: str
    removed: str
    reset: str




def compare_dictionaries_ignoring_keys(expected, actual, exclude_regex_paths, group_by=None):
def compare_dictionaries_ignoring_keys(expected, actual, exclude_regex_paths, group_by=None):
@@ -14,4 +24,25 @@ def compare_dictionaries_ignoring_keys(expected, actual, exclude_regex_paths, gr
                       group_by=group_by)
                       group_by=group_by)
    else:
    else:
        res = DeepDiff(expected, actual, exclude_regex_paths=exclude_regex_paths, ignore_order=True, verbose_level=1)
        res = DeepDiff(expected, actual, exclude_regex_paths=exclude_regex_paths, ignore_order=True, verbose_level=1)

    if len(res) > 0:
        output_pretty_diff(expected, actual, Theme(added="", removed="", reset=""))
    return res
    return res


def output_pretty_diff(a, b, theme, indent_size: int = 2, console=False):
    logger.info("Dictionary comparison failed with -> ", also_console=True)
    lines = get_annotated_lines_from_diff(diff_json(a, b))

    msg = ""
    for line in lines:
        if Flag.ADDED in line.flags:
            flags = f"{theme.added}+ "
        elif Flag.REMOVED in line.flags:
            flags = f"{theme.removed}- "
        else:
            flags = f"{theme.reset} "

        msg = msg + flags + " " * (indent_size * line.indent) + line.s + "\n"

    logger.info(msg, also_console=True)
+7 −15
Original line number Original line Diff line number Diff line
from __future__ import unicode_literals
from __future__ import unicode_literals
from __future__ import division
from __future__ import division
from pygments import highlight, lexers, formatters
from json import dumps, JSONDecodeError, loads
from json import dumps, JSONDecodeError, loads
from robot.api import logger
from robot.api import logger
from robot.api.deco import keyword
from robot.api.deco import keyword




@keyword(name="Output", tags=("I/O",))
@keyword(name="Output", tags=("I/O",))
def output(response, console=True):
def output(response, description, console=True):
    """*Request and response are output to terminal and file (in JSON).*
    """*Request and response are output to terminal and file (in JSON).*
    :param response: response to a request
    :param response: response to a request
    :param description: explains what request is being made
    :param console: If false, the JSON is not written to terminal. Default is true.
    :param console: If false, the JSON is not written to terminal. Default is true.
    """
    """


@@ -34,16 +34,8 @@ def output(response, console=True):
    pretty_request_json = dumps(request_json, indent=4, sort_keys=False, separators=(",", ": "))
    pretty_request_json = dumps(request_json, indent=4, sort_keys=False, separators=(",", ": "))
    pretty_response_json = dumps(response_json, indent=4, sort_keys=False, separators=(",", ": "))
    pretty_response_json = dumps(response_json, indent=4, sort_keys=False, separators=(",", ": "))


    logger.info(pretty_request_json)
    logger.info("\n" + description, also_console=True)
    logger.info(pretty_response_json)
    logger.info("Request ->", also_console=True)

    logger.info(pretty_request_json, also_console=True)
    if console:
    logger.info("Response ->", also_console=True)
        pretty_request_json_colored = highlight(
    logger.info(pretty_response_json, also_console=True)
            pretty_request_json, lexers.JsonLexer(), formatters.TerminalFormatter()
        )
        pretty_response_json_colored = highlight(
            pretty_response_json, lexers.JsonLexer(), formatters.TerminalFormatter()
        )

        logger.console(pretty_request_json_colored)
        logger.console(pretty_response_json_colored)
+1 −0
Original line number Original line Diff line number Diff line
@@ -3,5 +3,6 @@ robotframework==6.0.2
robotframework-jsonlibrary==0.5
robotframework-jsonlibrary==0.5
robotframework-requests==0.9.4
robotframework-requests==0.9.4
deepdiff==6.3.0
deepdiff==6.3.0
prettydiff==0.1.0
robotframework-httpctrl==0.3.1
robotframework-httpctrl==0.3.1
robotframework-tidy==4.2.1
robotframework-tidy==4.2.1
+61 −61
Original line number Original line Diff line number Diff line
@@ -44,13 +44,13 @@ ${response} ${EMPTY}
Delete Entity by Id Returning Response
Delete Entity by Id Returning Response
    [Arguments]    ${id}
    [Arguments]    ${id}
    ${response}=    DELETE    url=${url}/${ENTITIES_ENDPOINT_PATH}${id}    expected_status=any
    ${response}=    DELETE    url=${url}/${ENTITIES_ENDPOINT_PATH}${id}    expected_status=any
    Output    ${response}
    Output    ${response}    Delete Entity by Id Returning Response
    RETURN    ${response}
    RETURN    ${response}


Delete Entity by Id
Delete Entity by Id
    [Arguments]    ${id}
    [Arguments]    ${id}
    ${response}=    DELETE    url=${url}/${ENTITIES_ENDPOINT_PATH}${id}    expected_status=any
    ${response}=    DELETE    url=${url}/${ENTITIES_ENDPOINT_PATH}${id}    expected_status=any
    Output    ${response}
    Output    ${response}    Delete Entity by Id
    RETURN    ${response}
    RETURN    ${response}


Query Entity
Query Entity
@@ -87,7 +87,7 @@ Query Entity
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Query Entity
    RETURN    ${response}
    RETURN    ${response}


Query Entities
Query Entities
@@ -149,7 +149,7 @@ Query Entities
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Query Entities
    RETURN    ${response}
    RETURN    ${response}


Query Entities Via POST
Query Entities Via POST
@@ -184,7 +184,7 @@ Query Entities Via POST
    ...    json=${params}
    ...    json=${params}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Query Entities Via POST
    RETURN    ${response}
    RETURN    ${response}


Retrieve Entity by Id
Retrieve Entity by Id
@@ -197,7 +197,7 @@ Retrieve Entity by Id
        ...    Link=<${context}>; rel="http://www.w3.org/ns/json-ld#context";type="application/ld+json"
        ...    Link=<${context}>; rel="http://www.w3.org/ns/json-ld#context";type="application/ld+json"
    END
    END
    ${response}=    GET    url=${url}/${ENTITIES_ENDPOINT_PATH}${id}    headers=${headers}    expected_status=any
    ${response}=    GET    url=${url}/${ENTITIES_ENDPOINT_PATH}${id}    headers=${headers}    expected_status=any
    Output    ${response}
    Output    ${response}    Retrieve Entity by Id
    RETURN    ${response}
    RETURN    ${response}


Create Entity Selecting Content Type
Create Entity Selecting Content Type
@@ -218,7 +218,7 @@ Create Entity Selecting Content Type
    ...    json=${entity}
    ...    json=${entity}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Entity Selecting Content Type
    RETURN    ${response}
    RETURN    ${response}


Append Entity Attributes
Append Entity Attributes
@@ -230,7 +230,7 @@ Append Entity Attributes
    ...    data=${file_content}
    ...    data=${file_content}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Append Entity Attributes
    RETURN    ${response}
    RETURN    ${response}


Append Entity Attributes With Parameters
Append Entity Attributes With Parameters
@@ -242,7 +242,7 @@ Append Entity Attributes With Parameters
    ...    json=${fragment_payload}
    ...    json=${fragment_payload}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Append Entity Attributes With Parameters
    RETURN    ${response}
    RETURN    ${response}


Update Entity Attributes
Update Entity Attributes
@@ -254,7 +254,7 @@ Update Entity Attributes
    ...    data=${file_content}
    ...    data=${file_content}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Update Entity Attributes
    RETURN    ${response}
    RETURN    ${response}


Delete Entity Attributes
Delete Entity Attributes
@@ -277,7 +277,7 @@ Delete Entity Attributes
    ...    url=${url}/${ENTITIES_ENDPOINT_PATH}${entityId}/attrs/${attributeId}?${params_as_string}
    ...    url=${url}/${ENTITIES_ENDPOINT_PATH}${entityId}/attrs/${attributeId}?${params_as_string}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Delete Entity Attributes
    RETURN    ${response}
    RETURN    ${response}


Partial Update Entity Attributes
Partial Update Entity Attributes
@@ -303,7 +303,7 @@ Partial Update Entity Attributes
    ...    json=${fragment_payload}
    ...    json=${fragment_payload}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Partial Update Entity Attributes
    RETURN    ${response}
    RETURN    ${response}


Retrieve Entity Types
Retrieve Entity Types
@@ -325,7 +325,7 @@ Retrieve Entity Types
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Retrieve Entity Types
    RETURN    ${response}
    RETURN    ${response}


Retrieve Entity Type
Retrieve Entity Type
@@ -344,7 +344,7 @@ Retrieve Entity Type
    ...    url=${url}/${ENTITIES_TYPES_ENDPOINT_PATH}/${type}
    ...    url=${url}/${ENTITIES_TYPES_ENDPOINT_PATH}/${type}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Retrieve Entity Type
    RETURN    ${response}
    RETURN    ${response}


Retrieve Attributes
Retrieve Attributes
@@ -366,7 +366,7 @@ Retrieve Attributes
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Retrieve Attributes
    RETURN    ${response}
    RETURN    ${response}


Retrieve Attribute
Retrieve Attribute
@@ -385,7 +385,7 @@ Retrieve Attribute
    ...    url=${url}/${ATTRIBUTES_ENDPOINT_PATH}/${attribute_name}
    ...    url=${url}/${ATTRIBUTES_ENDPOINT_PATH}/${attribute_name}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Retrieve Attribute
    RETURN    ${response}
    RETURN    ${response}


Create Context Source Registration With Return
Create Context Source Registration With Return
@@ -404,7 +404,7 @@ Create Context Source Registration With Return
    ...    json=${payload}
    ...    json=${payload}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Context Source Registration
    RETURN    ${response}
    RETURN    ${response}


Update Context Source Registration With Return
Update Context Source Registration With Return
@@ -416,7 +416,7 @@ Update Context Source Registration With Return
    ...    json=${fragment}
    ...    json=${fragment}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Update Context Source Registration
    RETURN    ${response}
    RETURN    ${response}


Delete Context Source Registration With Return
Delete Context Source Registration With Return
@@ -424,7 +424,7 @@ Delete Context Source Registration With Return
    ${response}=    DELETE
    ${response}=    DELETE
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH}/${registration_id}
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH}/${registration_id}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Delete Context Source Registration
    RETURN    ${response}
    RETURN    ${response}


Create Entity
Create Entity
@@ -437,7 +437,7 @@ Create Entity
    ...    json=${entity}
    ...    json=${entity}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Entity
    RETURN    ${response}
    RETURN    ${response}


Create Or Update Temporal Representation Of Entity Selecting Content Type
Create Or Update Temporal Representation Of Entity Selecting Content Type
@@ -456,7 +456,7 @@ Create Or Update Temporal Representation Of Entity Selecting Content Type
    ...    json=${temporal_entity_representation}
    ...    json=${temporal_entity_representation}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Or Update Temporal Representation Of Entity Selecting Content Type
    RETURN    ${response}
    RETURN    ${response}


Create Temporal Representation Of Entity Selecting Content Type
Create Temporal Representation Of Entity Selecting Content Type
@@ -468,7 +468,7 @@ Create Temporal Representation Of Entity Selecting Content Type
    ...    data=${file_content}
    ...    data=${file_content}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Temporal Representation Of Entity Selecting Content Type
    RETURN    ${response}
    RETURN    ${response}


Append Attribute To Temporal Entity
Append Attribute To Temporal Entity
@@ -480,7 +480,7 @@ Append Attribute To Temporal Entity
    ...    data=${file_content}
    ...    data=${file_content}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Append Attribute To Temporal Entity
    RETURN    ${response}
    RETURN    ${response}


Modify Attribute Instance From Temporal Entity
Modify Attribute Instance From Temporal Entity
@@ -503,7 +503,7 @@ Modify Attribute Instance From Temporal Entity
    ...    json=${fragment_payload}
    ...    json=${fragment_payload}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Modify Attribute Instance From Temporal Entity
    RETURN    ${response}
    RETURN    ${response}


Delete Attribute From Temporal Entity
Delete Attribute From Temporal Entity
@@ -532,7 +532,7 @@ Delete Attribute From Temporal Entity
    ...    url=${url}/${TEMPORAL_ENTITIES_ENDPOINT_PATH}/${entityId}/attrs/${attributeId}?${params_as_string}
    ...    url=${url}/${TEMPORAL_ENTITIES_ENDPOINT_PATH}/${entityId}/attrs/${attributeId}?${params_as_string}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Delete Attribute From Temporal Entity
    RETURN    ${response}
    RETURN    ${response}


Delete Temporal Representation Of Entity With Returning Response
Delete Temporal Representation Of Entity With Returning Response
@@ -540,7 +540,7 @@ Delete Temporal Representation Of Entity With Returning Response
    ${response}=    DELETE
    ${response}=    DELETE
    ...    url=${url}/${TEMPORAL_ENTITIES_ENDPOINT_PATH}/${temporal_entity_representation_id}
    ...    url=${url}/${TEMPORAL_ENTITIES_ENDPOINT_PATH}/${temporal_entity_representation_id}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Delete Temporal Representation Of Entity
    RETURN    ${response}
    RETURN    ${response}


Get Temporal Representation Of Entity
Get Temporal Representation Of Entity
@@ -568,7 +568,7 @@ Get Temporal Representation Of Entity
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Get Temporal Representation Of Entity
    RETURN    ${response}
    RETURN    ${response}


Delete Attribute Instance From Temporal Entity
Delete Attribute Instance From Temporal Entity
@@ -583,7 +583,7 @@ Delete Attribute Instance From Temporal Entity
    ...    url=${url}/${TEMPORAL_ENTITIES_ENDPOINT_PATH}/${temporal_entity_id}/attrs/${attributeId}/${instanceId}
    ...    url=${url}/${TEMPORAL_ENTITIES_ENDPOINT_PATH}/${temporal_entity_id}/attrs/${attributeId}/${instanceId}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Delete Attribute Instance From Temporal Entity
    RETURN    ${response}
    RETURN    ${response}


Update Temporal Representation Of Entity Selecting Content Type
Update Temporal Representation Of Entity Selecting Content Type
@@ -601,7 +601,7 @@ Update Temporal Representation Of Entity Selecting Content Type
    ...    json=${temporal_entity_fragment}
    ...    json=${temporal_entity_fragment}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Update Temporal Representation Of Entity Selecting Content Type
    RETURN    ${response}
    RETURN    ${response}


Batch Create Entities
Batch Create Entities
@@ -625,7 +625,7 @@ Batch Create Entities
    ...    json=@{entities_to_be_created}
    ...    json=@{entities_to_be_created}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Batch Create Entities
    RETURN    ${response}
    RETURN    ${response}


Batch Upsert Entities
Batch Upsert Entities
@@ -636,7 +636,7 @@ Batch Upsert Entities
    ...    json=@{entities_to_be_upserted}
    ...    json=@{entities_to_be_upserted}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Batch Upsert Entities
    RETURN    ${response}
    RETURN    ${response}


Batch Update Entities
Batch Update Entities
@@ -647,7 +647,7 @@ Batch Update Entities
    ...    json=@{entities_to_be_updated}
    ...    json=@{entities_to_be_updated}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Batch Update Entities
    RETURN    ${response}
    RETURN    ${response}


Batch Delete Entities
Batch Delete Entities
@@ -658,7 +658,7 @@ Batch Delete Entities
    ...    json=@{entities_ids_to_be_deleted}
    ...    json=@{entities_ids_to_be_deleted}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Batch Delete Entities
    RETURN    ${response}
    RETURN    ${response}


Request Entity From File
Request Entity From File
@@ -670,7 +670,7 @@ Request Entity From File
    ...    data=${file_content}
    ...    data=${file_content}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Request Entity From File
    RETURN    ${response}
    RETURN    ${response}


Batch Request Entities From File
Batch Request Entities From File
@@ -683,7 +683,7 @@ Batch Request Entities From File
    ...    data=${file_content}
    ...    data=${file_content}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Batch Request Entities From File
    RETURN    ${response}
    RETURN    ${response}


Create Temporal Representation Of Entity
Create Temporal Representation Of Entity
@@ -700,7 +700,7 @@ Create Temporal Representation Of Entity
    ...    json=${temporal_entity_representation}
    ...    json=${temporal_entity_representation}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Temporal Representation Of Entity
    RETURN    ${response}
    RETURN    ${response}


Retrieve Temporal Representation Of Entity
Retrieve Temporal Representation Of Entity
@@ -743,7 +743,7 @@ Retrieve Temporal Representation Of Entity
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Retrieve Temporal Representation Of Entity
    RETURN    ${response}
    RETURN    ${response}


Query Temporal Representation Of Entities
Query Temporal Representation Of Entities
@@ -811,7 +811,7 @@ Query Temporal Representation Of Entities
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Query Temporal Representation Of Entities
    RETURN    ${response}
    RETURN    ${response}


Query Temporal Representation Of Entities Via Post
Query Temporal Representation Of Entities Via Post
@@ -827,7 +827,7 @@ Query Temporal Representation Of Entities Via Post
    ...    json=${query_payload}
    ...    json=${query_payload}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Query Temporal Representation Of Entities Via Post
    RETURN    ${response}
    RETURN    ${response}


Delete Temporal Representation Of Entity
Delete Temporal Representation Of Entity
@@ -836,7 +836,7 @@ Delete Temporal Representation Of Entity
    ${response}=    DELETE
    ${response}=    DELETE
    ...    url=${url}/${TEMPORAL_ENTITIES_ENDPOINT_PATH}/${temporal_entity_representation_id}
    ...    url=${url}/${TEMPORAL_ENTITIES_ENDPOINT_PATH}/${temporal_entity_representation_id}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Delete Temporal Representation Of Entity
    RETURN    ${response}
    RETURN    ${response}


Create Context Source Registration
Create Context Source Registration
@@ -848,7 +848,7 @@ Create Context Source Registration
    ...    json=${context_source_registration_payload}
    ...    json=${context_source_registration_payload}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Context Source Registration
    RETURN    ${response}
    RETURN    ${response}


Update Context Source Registration
Update Context Source Registration
@@ -858,7 +858,7 @@ Update Context Source Registration
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH}/${context_source_registration_id}
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH}/${context_source_registration_id}
    ...    json=${update_fragment}
    ...    json=${update_fragment}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Update Context Source Registration
    RETURN    ${response}
    RETURN    ${response}


Query Context Source Registrations
Query Context Source Registrations
@@ -918,14 +918,14 @@ Query Context Source Registrations
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Query Context Source Registrations
    RETURN    ${response}
    RETURN    ${response}


Delete Context Source Registration
Delete Context Source Registration
    [Arguments]    ${context_source_registration_id}
    [Arguments]    ${context_source_registration_id}


    ${response}=    DELETE    url=${url}/${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH}/${context_source_registration_id}
    ${response}=    DELETE    url=${url}/${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH}/${context_source_registration_id}
    Output    ${response}
    Output    ${response}    Delete Context Source Registration
    RETURN    ${response}
    RETURN    ${response}


Retrieve Context Source Registration
Retrieve Context Source Registration
@@ -942,7 +942,7 @@ Retrieve Context Source Registration
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH}/${context_source_registration_id}
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH}/${context_source_registration_id}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Retrieve Context Source Registration
    RETURN    ${response}
    RETURN    ${response}


Create Context Source Registration Subscription
Create Context Source Registration Subscription
@@ -957,7 +957,7 @@ Create Context Source Registration Subscription
    ...    json=${subscription_payload}
    ...    json=${subscription_payload}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Context Source Registration Subscription
    RETURN    ${response}
    RETURN    ${response}


Update Context Source Registration Subscription
Update Context Source Registration Subscription
@@ -967,7 +967,7 @@ Update Context Source Registration Subscription
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id}
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id}
    ...    json=${subscription_update_fragment}
    ...    json=${subscription_update_fragment}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Update Context Source Registration Subscription
    RETURN    ${response}
    RETURN    ${response}


Retrieve Context Source Registration Subscription
Retrieve Context Source Registration Subscription
@@ -984,7 +984,7 @@ Retrieve Context Source Registration Subscription
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id}
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Retrieve Context Source Registration Subscription
    RETURN    ${response}
    RETURN    ${response}


Query Context Source Registration Subscriptions
Query Context Source Registration Subscriptions
@@ -1006,14 +1006,14 @@ Query Context Source Registration Subscriptions
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Query Context Source Registration Subscriptions
    RETURN    ${response}
    RETURN    ${response}


Delete Context Source Registration Subscription
Delete Context Source Registration Subscription
    [Arguments]    ${subscription_id}
    [Arguments]    ${subscription_id}


    ${response}=    DELETE    ${url}/${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id}
    ${response}=    DELETE    ${url}/${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id}
    Output    ${response}
    Output    ${response}    Delete Context Source Registration Subscription
    RETURN    ${response}
    RETURN    ${response}


Update Context Source Registration Subscription From File
Update Context Source Registration Subscription From File
@@ -1023,7 +1023,7 @@ Update Context Source Registration Subscription From File
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id}
    ...    url=${url}/${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id}
    ...    data=${file_content}
    ...    data=${file_content}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Update Context Source Registration Subscription From File
    RETURN    ${response}
    RETURN    ${response}


Create Subscription
Create Subscription
@@ -1049,7 +1049,7 @@ Create Subscription
    ...    json=${subscription}
    ...    json=${subscription}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Subscription
    RETURN    ${response}
    RETURN    ${response}


Create Subscription From Subscription Payload
Create Subscription From Subscription Payload
@@ -1072,7 +1072,7 @@ Create Subscription From Subscription Payload
    ...    json=${subscription_payload}
    ...    json=${subscription_payload}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Subscription From Subscription Payload
    RETURN    ${response}
    RETURN    ${response}


Create Subscription From File
Create Subscription From File
@@ -1084,7 +1084,7 @@ Create Subscription From File
    ...    data=${file_content}
    ...    data=${file_content}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Create Subscription From File
    RETURN    ${response}
    RETURN    ${response}


Update Subscription
Update Subscription
@@ -1109,7 +1109,7 @@ Update Subscription
    ...    json=${subscription_update_fragment}
    ...    json=${subscription_update_fragment}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Update Subscription
    RETURN    ${response}
    RETURN    ${response}


Update Subscription With Payload
Update Subscription With Payload
@@ -1128,13 +1128,13 @@ Update Subscription With Payload
    ...    json=${payload}
    ...    json=${payload}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Update Subscription With Payload
    RETURN    ${response}
    RETURN    ${response}


Delete Subscription
Delete Subscription
    [Arguments]    ${subscription_id}
    [Arguments]    ${subscription_id}
    ${response}=    DELETE    url=${url}/${SUBSCRIPTION_ENDPOINT_PATH}${subscription_id}    expected_status=any
    ${response}=    DELETE    url=${url}/${SUBSCRIPTION_ENDPOINT_PATH}${subscription_id}    expected_status=any
    Output    ${response}
    Output    ${response}    Delete Subscription
    RETURN    ${response}
    RETURN    ${response}


Query Subscriptions
Query Subscriptions
@@ -1158,7 +1158,7 @@ Query Subscriptions
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Query Subscriptions
    RETURN    ${response}
    RETURN    ${response}


Retrieve Subscription
Retrieve Subscription
@@ -1175,7 +1175,7 @@ Retrieve Subscription
    END
    END


    ${response}=    GET    url=${url}/${SUBSCRIPTION_ENDPOINT_PATH}${id}    headers=${headers}    expected_status=any
    ${response}=    GET    url=${url}/${SUBSCRIPTION_ENDPOINT_PATH}${id}    headers=${headers}    expected_status=any
    Output    ${response}
    Output    ${response}    Retrieve Subscription
    RETURN    ${response}
    RETURN    ${response}


Query Context Source Registrations With Return
Query Context Source Registrations With Return
@@ -1235,7 +1235,7 @@ Query Context Source Registrations With Return
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Query Context Source Registrations
    RETURN    ${response}
    RETURN    ${response}


Query Temporal Representation Of Entities With Return
Query Temporal Representation Of Entities With Return
@@ -1303,5 +1303,5 @@ Query Temporal Representation Of Entities With Return
    ...    headers=${headers}
    ...    headers=${headers}
    ...    params=${params}
    ...    params=${params}
    ...    expected_status=any
    ...    expected_status=any
    Output    ${response}
    Output    ${response}    Query Temporal Representation Of Entities
    RETURN    ${response}
    RETURN    ${response}
Loading