Loading TP/NGSI-LD/DistributedOperations/Provision/EntityAttributes/UpdateEntityAttributes/D004_01_inc.robot +0 −2 Original line number Diff line number Diff line Loading @@ -39,8 +39,6 @@ D004_01_inc Query The Context Broker With Type Should Be True ${stub_count} > 0 @{entities_id}= Create List ${entity_id} # ${response_query_remote}= Query Entities entity_types=Vehicle base_url=${remote_url} # Check Response Status Code 200 ${response_query_remote.status_code} ${payload_list} Evaluate [$payload] Check Response Body Containing Entities URIS set to ${entities_id} ${payload_list} Loading doc/analysis/parseapiutilsfile.py +1 −4 Original line number Diff line number Diff line Loading @@ -44,10 +44,7 @@ class ParseApiUtilsFile: if 'response' in url: url = [x for x in url.split(' ') if 'url' in x][0] if 'base_url' not in url: regex = r"\s*\.*\s*url=\$\{url\}\/(.*)" else: regex = r"\s*\.*\s*url=\$\{base_url\}\/(.*)" match = re.match(pattern=regex, string=url) if match: Loading resources/ApiUtils/ContextInformationConsumption.resource +3 −4 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ ${response} ${EMPTY} *** Keywords *** Query Entities [Arguments] ... ${base_url}=${url} ... ${entity_ids}=${EMPTY} ... ${entity_types}=${EMPTY} ... ${accept}=${EMPTY} Loading Loading @@ -87,7 +86,7 @@ Query Entities IF '${q}'!='' Set To Dictionary ${params} q=${q} IF '${local}'!='' Set To Dictionary ${params} local=${local} ${response}= GET ... url=${base_url}/${ENTITIES_ENDPOINT_PATH} ... url=${url}/${ENTITIES_ENDPOINT_PATH} ... headers=${headers} ... params=${params} ... expected_status=any Loading Loading @@ -211,7 +210,7 @@ Retrieve Attributes RETURN ${response} Retrieve Entity by Id [Arguments] ${id} ${accept}=${CONTENT_TYPE_LD_JSON} ${context}=${EMPTY} ${local}=${EMPTY} ${base_url}=${url} ${options}=${EMPTY} [Arguments] ${id} ${accept}=${CONTENT_TYPE_LD_JSON} ${context}=${EMPTY} ${local}=${EMPTY} ${options}=${EMPTY} ${headers}= Create Dictionary &{params}= Create Dictionary ${options_length}= Get Length ${options} Loading @@ -226,7 +225,7 @@ Retrieve Entity by Id Set To Dictionary ${params} options=${options} END ${response}= GET ... url=${base_url}/${ENTITIES_ENDPOINT_PATH}${id} ... url=${url}/${ENTITIES_ENDPOINT_PATH}${id} ... headers=${headers} ... params=${params} ... expected_status=any Loading resources/ApiUtils/ContextInformationProvision.resource +4 −4 Original line number Diff line number Diff line Loading @@ -151,12 +151,12 @@ Batch Upsert Entities RETURN ${response} Create Entity [Arguments] ${filename} ${entity_id} ${base_url}=${url} [Arguments] ${filename} ${entity_id} ${entity_payload}= Load JSON From File ${EXECDIR}/data/entities/${filename} ${entity}= Update Value To JSON ${entity_payload} $..id ${entity_id} &{headers}= Create Dictionary Content-Type=application/ld+json ${response}= POST ... url=${base_url}/${ENTITIES_ENDPOINT_PATH} ... url=${url}/${ENTITIES_ENDPOINT_PATH} ... json=${entity} ... headers=${headers} ... expected_status=any Loading Loading @@ -238,9 +238,9 @@ Delete Entity Attributes RETURN ${response} Delete Entity by Id [Arguments] ${id} ${base_url}=${url} [Arguments] ${id} ${response}= DELETE ... url=${base_url}/${ENTITIES_ENDPOINT_PATH}${id} ... url=${url}/${ENTITIES_ENDPOINT_PATH}${id} ... expected_status=any IF ${delete_temporal_on_core_delete} Delete Temporal Representation Of Entity ${id} Loading resources/variables.py +0 −4 Original line number Diff line number Diff line Loading @@ -14,10 +14,6 @@ core_context = 'https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld # whether the Temporal Representation of an Entity should be deleted when an Entity is deleted delete_temporal_on_core_delete = True #DistOps variables remote_url = 'http://0.0.0.0:8081/ngsi-ld/v1' context_source_endpoint = 'http://0.0.0.0:8081' # GitHub repository details # github_owner = 'your_github_username' # github_broker_repo = 'context_broker_repository' Loading Loading
TP/NGSI-LD/DistributedOperations/Provision/EntityAttributes/UpdateEntityAttributes/D004_01_inc.robot +0 −2 Original line number Diff line number Diff line Loading @@ -39,8 +39,6 @@ D004_01_inc Query The Context Broker With Type Should Be True ${stub_count} > 0 @{entities_id}= Create List ${entity_id} # ${response_query_remote}= Query Entities entity_types=Vehicle base_url=${remote_url} # Check Response Status Code 200 ${response_query_remote.status_code} ${payload_list} Evaluate [$payload] Check Response Body Containing Entities URIS set to ${entities_id} ${payload_list} Loading
doc/analysis/parseapiutilsfile.py +1 −4 Original line number Diff line number Diff line Loading @@ -44,10 +44,7 @@ class ParseApiUtilsFile: if 'response' in url: url = [x for x in url.split(' ') if 'url' in x][0] if 'base_url' not in url: regex = r"\s*\.*\s*url=\$\{url\}\/(.*)" else: regex = r"\s*\.*\s*url=\$\{base_url\}\/(.*)" match = re.match(pattern=regex, string=url) if match: Loading
resources/ApiUtils/ContextInformationConsumption.resource +3 −4 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ ${response} ${EMPTY} *** Keywords *** Query Entities [Arguments] ... ${base_url}=${url} ... ${entity_ids}=${EMPTY} ... ${entity_types}=${EMPTY} ... ${accept}=${EMPTY} Loading Loading @@ -87,7 +86,7 @@ Query Entities IF '${q}'!='' Set To Dictionary ${params} q=${q} IF '${local}'!='' Set To Dictionary ${params} local=${local} ${response}= GET ... url=${base_url}/${ENTITIES_ENDPOINT_PATH} ... url=${url}/${ENTITIES_ENDPOINT_PATH} ... headers=${headers} ... params=${params} ... expected_status=any Loading Loading @@ -211,7 +210,7 @@ Retrieve Attributes RETURN ${response} Retrieve Entity by Id [Arguments] ${id} ${accept}=${CONTENT_TYPE_LD_JSON} ${context}=${EMPTY} ${local}=${EMPTY} ${base_url}=${url} ${options}=${EMPTY} [Arguments] ${id} ${accept}=${CONTENT_TYPE_LD_JSON} ${context}=${EMPTY} ${local}=${EMPTY} ${options}=${EMPTY} ${headers}= Create Dictionary &{params}= Create Dictionary ${options_length}= Get Length ${options} Loading @@ -226,7 +225,7 @@ Retrieve Entity by Id Set To Dictionary ${params} options=${options} END ${response}= GET ... url=${base_url}/${ENTITIES_ENDPOINT_PATH}${id} ... url=${url}/${ENTITIES_ENDPOINT_PATH}${id} ... headers=${headers} ... params=${params} ... expected_status=any Loading
resources/ApiUtils/ContextInformationProvision.resource +4 −4 Original line number Diff line number Diff line Loading @@ -151,12 +151,12 @@ Batch Upsert Entities RETURN ${response} Create Entity [Arguments] ${filename} ${entity_id} ${base_url}=${url} [Arguments] ${filename} ${entity_id} ${entity_payload}= Load JSON From File ${EXECDIR}/data/entities/${filename} ${entity}= Update Value To JSON ${entity_payload} $..id ${entity_id} &{headers}= Create Dictionary Content-Type=application/ld+json ${response}= POST ... url=${base_url}/${ENTITIES_ENDPOINT_PATH} ... url=${url}/${ENTITIES_ENDPOINT_PATH} ... json=${entity} ... headers=${headers} ... expected_status=any Loading Loading @@ -238,9 +238,9 @@ Delete Entity Attributes RETURN ${response} Delete Entity by Id [Arguments] ${id} ${base_url}=${url} [Arguments] ${id} ${response}= DELETE ... url=${base_url}/${ENTITIES_ENDPOINT_PATH}${id} ... url=${url}/${ENTITIES_ENDPOINT_PATH}${id} ... expected_status=any IF ${delete_temporal_on_core_delete} Delete Temporal Representation Of Entity ${id} Loading
resources/variables.py +0 −4 Original line number Diff line number Diff line Loading @@ -14,10 +14,6 @@ core_context = 'https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld # whether the Temporal Representation of an Entity should be deleted when an Entity is deleted delete_temporal_on_core_delete = True #DistOps variables remote_url = 'http://0.0.0.0:8081/ngsi-ld/v1' context_source_endpoint = 'http://0.0.0.0:8081' # GitHub repository details # github_owner = 'your_github_username' # github_broker_repo = 'context_broker_repository' Loading