Skip to content
...@@ -162,7 +162,8 @@ class ParseRobotFile: ...@@ -162,7 +162,8 @@ class ParseRobotFile:
when = (f"when {{\n the SUT receives a Request from the client containing:\n" when = (f"when {{\n the SUT receives a Request from the client containing:\n"
f" {url}\n" f" {url}\n"
f" {method}\n" f" {method}\n"
f" {when}") f" {when}\n"
f"}}")
return when return when
......
...@@ -54,8 +54,12 @@ class Requests: ...@@ -54,8 +54,12 @@ class Requests:
'params': ['accept'] 'params': ['accept']
}, },
'Query Temporal Representation Of Entities': { 'Query Temporal Representation Of Entities': {
'positions': [0, 1, 2, 3], 'positions': [],
'params': ['entity_types', 'timerel', 'timeAt', 'accept'] 'params': ['context', 'entity_types', 'entity_ids', 'entity_id_pattern',
'ngsild_query', 'csf', 'georel', 'geometry',
'coordinates', 'geoproperty', 'timerel', 'timeAt',
'attrs', 'limit', 'lastN', 'accept']
}, },
'Retrieve Attribute': { 'Retrieve Attribute': {
'positions': [0], 'positions': [0],
...@@ -65,12 +69,20 @@ class Requests: ...@@ -65,12 +69,20 @@ class Requests:
'positions': [0, 1], 'positions': [0, 1],
'params': ['type', 'context'] 'params': ['type', 'context']
}, },
'Retrieve Entity by Id': {
'positions': [],
'params': ['id', 'accept', 'context']
},
'Query Entities': { 'Query Entities': {
'positions': [0, 1], 'positions': [0, 1],
'params': ['entity_ids', 'entity_types', 'accepts'] 'params': ['entity_ids', 'entity_types', 'accepts']
}, },
'Retrieve Temporal Representation Of Entity': { 'Retrieve Temporal Representation Of Entity': {
'params': ['entity_ids', 'entity_types', 'accepts'] 'params': ['entity_ids', 'entity_types', 'accepts']
},
'Delete Entity by Id Returning Response': {
'positions': [0],
'params': ['id']
} }
} }
...@@ -105,8 +117,12 @@ class Requests: ...@@ -105,8 +117,12 @@ class Requests:
Requests.retrieve_attribute, Requests.retrieve_attribute,
'Retrieve Entity Type': 'Retrieve Entity Type':
Requests.retrieve_entity_type, Requests.retrieve_entity_type,
'Retrieve Entity by Id':
Requests.retrieve_entity_by_id,
'Query Entities': 'Query Entities':
Requests.query_entities Requests.query_entities,
'Delete Entity by Id Returning Response':
Requests.delete_entity_by_id_returning_response
} }
self.variables = variables self.variables = variables
...@@ -175,11 +191,17 @@ class Requests: ...@@ -175,11 +191,17 @@ class Requests:
def find_attributes_in_the_same_line(self, request_name, params): def find_attributes_in_the_same_line(self, request_name, params):
param = dict() param = dict()
for i in range(0, len(self.op[request_name]['positions'])): if len(self.op[request_name]['positions']) == 0:
param_position = self.op[request_name]['positions'][i] # We do not know the position of the different parameters and the order in which they are received,
param_key = self.op[request_name]['params'][i] # therefore in these cases all the parameters have identified the corresponding name
param_value = self.get_value(params=params, param_position=param_position, param_key=param_key) param = {x.split('=')[0]: self.get_value_simple(x.split('=')[1]) for x in params}
param[param_key] = param_value
else:
for i in range(0, len(self.op[request_name]['positions'])):
param_position = self.op[request_name]['positions'][i]
param_key = self.op[request_name]['params'][i]
param_value = self.get_value(params=params, param_position=param_position, param_key=param_key)
param[param_key] = param_value
return param return param
...@@ -309,19 +331,57 @@ class Requests: ...@@ -309,19 +331,57 @@ class Requests:
@staticmethod @staticmethod
def query_temporal_representation_of_entities(kwargs) -> str: def query_temporal_representation_of_entities(kwargs) -> str:
expected_parameters = ['entity_types', 'timerel', 'timeAt', 'accept'] # This function is a little bit special because we have a number of parameters not always defined and not always
result = [x for x in expected_parameters if x not in kwargs] # in the same position, so we make a different analysis to extract the values
expected_parameters = ['context', 'entity_types', 'entity_ids', 'entity_id_pattern',
if len(result) == 0: 'ngsild_query', 'csf', 'georel', 'geometry',
response = ("Response containing:\n" 'coordinates', 'geoproperty', 'timerel', 'timeAt',
f" * Entity-Type is equal to '{kwargs['entity_types']}'\n" 'attrs', 'limit', 'lastN', 'accept']
f" * timeRel is equal to '{kwargs['timerel']}'\n"
f" * timeAt is equal to '{kwargs['timeAt']}'\n" result = [x for x in kwargs if x not in expected_parameters]
f" * Accept is equal to '{kwargs['accept']}'") response = ""
return response for key, value in kwargs.items():
else: match key:
raise Exception(f"ERROR, unexpected attribute '{result}', the attributes expected are " case 'context':
f"'{expected_parameters}', but received: {kwargs}") response = f"{response} and\n Query Parameter: context set to '{value}'"
case 'entity_types':
response = f"{response} and\n Query Parameter: entity_types set to '{value}'"
case 'entity_ids':
response = f"{response} and\n Query Parameter: entity_ids set to '{value}'"
case 'entity_id_pattern':
response = f"{response} and\n Query Parameter: entity_id_pattern set to '{value}'"
case 'ngsild_query':
response = f"{response} and\n Query Parameter: ngsild_query set to '{value}'"
case 'csf':
response = f"{response} and\n Query Parameter: csf set to '{value}'"
case 'georel':
response = f"{response} and\n Query Parameter: georel set to '{value}'"
case 'geometry':
response = f"{response} and\n Query Parameter: geometry set to '{value}'"
case 'coordinates':
response = f"{response} and\n Query Parameter: coordinates set to '{value}'"
case 'geoproperty':
response = f"{response} and\n Query Parameter: geoproperty set to '{value}'"
case 'timerel':
response = f"{response} and\n Query Parameter: timerel set to '{value}'"
case 'timeAt':
response = f"{response} and\n Query Parameter: timeAt set to '{value}'"
case 'attrs':
response = f"{response} and\n Query Parameter: attrs set to '{value}'"
case 'limit':
response = f"{response} and\n Query Parameter: limit set to '{value}'"
case 'lastN':
value = re.search(pattern=r'\d+', string=value).group()
response = f"{response} and\n Query Parameter: lastN set to '{value}'"
case 'accept':
response = f"{response} and\n Query Parameter: accept set to '{value}'"
# If an exact match is not confirmed, this last case will be used if provided
case _:
raise Exception(f"ERROR, unexpected attribute '{result}', the attributes expected are "
f"'{expected_parameters}', but received: {kwargs}")
return response
@staticmethod @staticmethod
def retrieve_attribute(kwargs) -> str: def retrieve_attribute(kwargs) -> str:
...@@ -356,6 +416,32 @@ class Requests: ...@@ -356,6 +416,32 @@ class Requests:
return result return result
@staticmethod
def retrieve_entity_by_id(kwargs) -> str:
expected_parameters = ['id', 'accept', 'context']
result = [x for x in kwargs if x not in expected_parameters]
response = 'Request Retrieve Entity by Id'
for key, value in kwargs.items():
match key:
case 'id':
response = f"{response} and\n Query Parameter: id set to '{value}'"
case 'accept':
response = f"{response} and\n Query Parameter: accept set to '{value}'"
case 'context':
response = f"{response} and\n Query Parameter: context set to '{value}'"
# If an exact match is not confirmed, this last case will be used if provided
case _:
raise Exception(f"ERROR, unexpected attribute '{result}', the attributes expected are "
f"'{expected_parameters}', but received: {kwargs}")
return response
@staticmethod
def delete_entity_by_id_returning_response(kwargs) -> str:
if 'id' in kwargs:
return f"Delete Entity Request with id set to '{kwargs['id']}'"
def get_value(self, params, param_position, param_key): def get_value(self, params, param_position, param_key):
data = [x for x in params if f'{param_key}=' in x] data = [x for x in params if f'{param_key}=' in x]
...@@ -378,6 +464,9 @@ class Requests: ...@@ -378,6 +464,9 @@ class Requests:
except IndexError: except IndexError:
return '' return ''
return self.get_value_simple(data=data)
def get_value_simple(self, data):
try: try:
value = self.variables[data] value = self.variables[data]
return value return value
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"teardown": "Delete Entity by Id", "teardown": "Delete Entity by Id",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'building-unretrievable-context-sample.jsonld'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'building-unretrievable-context-sample.jsonld'\n}",
"http_verb": "POST", "http_verb": "POST",
"endpoint": "entities/" "endpoint": "entities/"
}, },
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"teardown": "Delete Subscription", "teardown": "Delete Subscription",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'subscriptions/subscription-unretrievable-context-sample.jsonld'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'subscriptions/subscription-unretrievable-context-sample.jsonld'\n}",
"http_verb": "POST", "http_verb": "POST",
"endpoint": "subscriptions/" "endpoint": "subscriptions/"
}, },
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
"teardown": "Delete Temporal Representation Of Entity", "teardown": "Delete Temporal Representation Of Entity",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'bus-temporal-representation-unretrievable-context-sample.jsonld'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'bus-temporal-representation-unretrievable-context-sample.jsonld'\n}",
"http_verb": "POST", "http_verb": "POST",
"endpoint": "temporal/entities" "endpoint": "temporal/entities"
}, },
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
"teardown": "Batch Delete Entities", "teardown": "Batch Delete Entities",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entityOperations/create'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload set to a list of entities to be created", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entityOperations/create'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload set to a list of entities to be created\n}",
"http_verb": "POST", "http_verb": "POST",
"endpoint": "entityOperations/create" "endpoint": "entityOperations/create"
}, },
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"teardown": "Delete Context Source Registration", "teardown": "Delete Context Source Registration",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 503\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 503\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: '${updated_payload}'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: '${updated_payload}'\n}",
"http_verb": "POST", "http_verb": "POST",
"endpoint": "csourceRegistrations" "endpoint": "csourceRegistrations"
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"teardown": "Delete Entity by Id", "teardown": "Delete Entity by Id",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 204\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 204\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{entityId}/attrs/{attributeId}'\n method set to 'PATCH'\n Request Partial Update Entity Attributes and \nHeader['Link'] contain the context 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and \nHeader['Content-Type'] set to 'application/merge-patch+json' and\nPayload defined in file 'vehicle-brandname-fragment.json'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{entityId}/attrs/{attributeId}'\n method set to 'PATCH'\n Request Partial Update Entity Attributes and \nHeader['Link'] contain the context 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and \nHeader['Content-Type'] set to 'application/merge-patch+json' and\nPayload defined in file 'vehicle-brandname-fragment.json'\n}",
"http_verb": "PATCH", "http_verb": "PATCH",
"endpoint": "entities/{entityId}/attrs/{attributeId}" "endpoint": "entities/{entityId}/attrs/{attributeId}"
}, },
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"teardown": "Delete Subscription", "teardown": "Delete Subscription",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 204\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 204\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{subscription_id}'\n method set to 'PATCH'\n Request Update Subscription and \nHeader['Link'] contain the context 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and\nHeader['Content-Type'] set to 'application/merge-patch+json' and\nPayload defined in file 'subscriptions/fragments/subscription-update-sample.json'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{subscription_id}'\n method set to 'PATCH'\n Request Update Subscription and \nHeader['Link'] contain the context 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and\nHeader['Content-Type'] set to 'application/merge-patch+json' and\nPayload defined in file 'subscriptions/fragments/subscription-update-sample.json'\n}",
"http_verb": "PATCH", "http_verb": "PATCH",
"endpoint": "subscriptions/{subscription_id}" "endpoint": "subscriptions/{subscription_id}"
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"teardown": "Delete Entity by Id Returning Response", "teardown": "Delete Entity by Id Returning Response",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{id}'\n method set to 'GET'\n Request Header['Link'] contain the context https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld\nHeader['Accept'] set to */*", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{id}'\n method set to 'GET'\n Request Header['Link'] contain the context https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld\nHeader['Accept'] set to */*\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/{id}" "endpoint": "entities/{id}"
}, },
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"teardown": "Delete Subscription", "teardown": "Delete Subscription",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{id}'\n method set to 'GET'\n Request a subscription\nHeader['Accept'] set to '*/*'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{id}'\n method set to 'GET'\n Request a subscription\nHeader['Accept'] set to '*/*'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "subscriptions/{id}" "endpoint": "subscriptions/{id}"
}, },
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
"teardown": "Delete Context Source Registration", "teardown": "Delete Context Source Registration",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'GET'\n Request a Context Source Registration with Return\nEntity Type set to 'Vehicle'\nHeader['Accept'] set to '*/*'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'GET'\n Request a Context Source Registration with Return\nEntity Type set to 'Vehicle'\nHeader['Accept'] set to '*/*'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "csourceRegistrations" "endpoint": "csourceRegistrations"
}, },
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
"teardown": "Delete Temporal Representation Of Entity", "teardown": "Delete Temporal Representation Of Entity",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n Request a Temporal Representation of Entities with Return", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n Request a Temporal Representation of Entities with Return\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "temporal/entities" "endpoint": "temporal/entities"
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"teardown": "Delete Entity by Id Returning Response", "teardown": "Delete Entity by Id Returning Response",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{entityId}/attrs/{attributeId}'\n method set to 'PATCH'\n Request Partial Update Entity Attributes and \nHeader['Content-Type'] set to 'application/xml' and\nPayload defined in file 'vehicle-brandname-fragment.jsonld'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{entityId}/attrs/{attributeId}'\n method set to 'PATCH'\n Request Partial Update Entity Attributes and \nHeader['Content-Type'] set to 'application/xml' and\nPayload defined in file 'vehicle-brandname-fragment.jsonld'\n}",
"http_verb": "PATCH", "http_verb": "PATCH",
"endpoint": "entities/{entityId}/attrs/{attributeId}" "endpoint": "entities/{entityId}/attrs/{attributeId}"
}, },
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"teardown": "Delete Subscription", "teardown": "Delete Subscription",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{subscription_id}'\n method set to 'PATCH'\n Request Update Subscription and \nHeader['Content-Type'] set to 'application/xml' and\nPayload defined in file 'csourceSubscriptions/fragments/subscription-update-sample.jsonld'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{subscription_id}'\n method set to 'PATCH'\n Request Update Subscription and \nHeader['Content-Type'] set to 'application/xml' and\nPayload defined in file 'csourceSubscriptions/fragments/subscription-update-sample.jsonld'\n}",
"http_verb": "PATCH", "http_verb": "PATCH",
"endpoint": "subscriptions/{subscription_id}" "endpoint": "subscriptions/{subscription_id}"
}, },
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
"teardown": "Delete Entity by Id", "teardown": "Delete Entity by Id",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/xml' and\n payload defined in file: 'building-simple-attributes-sample.jsonld'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/xml' and\n payload defined in file: 'building-simple-attributes-sample.jsonld'\n}",
"http_verb": "POST", "http_verb": "POST",
"endpoint": "entities/" "endpoint": "entities/"
}, },
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
"teardown": "Delete Subscription", "teardown": "Delete Subscription",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/xml' and\n payload defined in file: 'csourceSubscriptions/subscription-sample.jsonld'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/xml' and\n payload defined in file: 'csourceSubscriptions/subscription-sample.jsonld'\n}",
"http_verb": "POST", "http_verb": "POST",
"endpoint": "subscriptions/" "endpoint": "subscriptions/"
}, },
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"teardown": "Batch Delete Entities", "teardown": "Batch Delete Entities",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entityOperations/create'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/xml' and\n payload set to a list of entities to be created", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entityOperations/create'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/xml' and\n payload set to a list of entities to be created\n}",
"http_verb": "POST", "http_verb": "POST",
"endpoint": "entityOperations/create" "endpoint": "entityOperations/create"
}, },
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
"teardown": "Delete Temporal Representation Of Entity", "teardown": "Delete Temporal Representation Of Entity",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/xml' and\n payload defined in file: 'vehicle-temporal-representation-sample.jsonld'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/xml' and\n payload defined in file: 'vehicle-temporal-representation-sample.jsonld'\n}",
"http_verb": "POST", "http_verb": "POST",
"endpoint": "temporal/entities" "endpoint": "temporal/entities"
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"teardown": "Delete Entity by Id Returning Response", "teardown": "Delete Entity by Id Returning Response",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{id}'\n method set to 'GET'\n \nHeader['Accept'] set to application/xml", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{id}'\n method set to 'GET'\n \nHeader['Accept'] set to application/xml\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/{id}" "endpoint": "entities/{id}"
}, },
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"teardown": "Delete Subscription", "teardown": "Delete Subscription",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{id}'\n method set to 'GET'\n Request a subscription\nHeader['Accept'] set to 'application/xml'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{id}'\n method set to 'GET'\n Request a subscription\nHeader['Accept'] set to 'application/xml'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "subscriptions/{id}" "endpoint": "subscriptions/{id}"
}, },
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'GET'\n Request a Context Source Registration with Return\nEntity Type set to 'Building'\nHeader['Accept'] set to 'application/xml'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'GET'\n Request a Context Source Registration with Return\nEntity Type set to 'Building'\nHeader['Accept'] set to 'application/xml'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "csourceRegistrations" "endpoint": "csourceRegistrations"
}, },
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceSubscriptions'\n method set to 'GET'\n Request Context Source Registration Subscriptions\nHeader['Accept'] set to 'application/xml'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceSubscriptions'\n method set to 'GET'\n Request Context Source Registration Subscriptions\nHeader['Accept'] set to 'application/xml'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "csourceSubscriptions" "endpoint": "csourceSubscriptions"
}, },
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n Response containing:\n * Entity-Type is equal to '${entity_types_to_be_retrieved}'\n * timeRel is equal to 'after'\n * timeAt is equal to '2020-08-01T12:05:00Z'\n * Accept is equal to 'application/xml'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: entity_types set to '${entity_types_to_be_retrieved}' and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-08-01T12:05:00Z' and\n Query Parameter: accept set to 'application/xml'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "temporal/entities" "endpoint": "temporal/entities"
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"teardown": "Delete Subscription", "teardown": "Delete Subscription",
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{id}'\n method set to 'GET'\n Request a subscription\nHeader['Accept'] set to 'application/geo+json'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{id}'\n method set to 'GET'\n Request a subscription\nHeader['Accept'] set to 'application/geo+json'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "subscriptions/{id}" "endpoint": "subscriptions/{id}"
}, },
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n Response containing:\n * Entity-Type is equal to '${entity_types_to_be_retrieved}'\n * timeRel is equal to 'after'\n * timeAt is equal to '2020-08-01T12:05:00Z'\n * Accept is equal to 'application/geo+json'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: entity_types set to '${entity_types_to_be_retrieved}' and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-08-01T12:05:00Z' and\n Query Parameter: accept set to 'application/geo+json'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "temporal/entities" "endpoint": "temporal/entities"
}, },
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'GET'\n Request a Context Source Registration with Return\nEntity Type set to 'Building'\nHeader['Accept'] set to 'application/geo+json'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'GET'\n Request a Context Source Registration with Return\nEntity Type set to 'Building'\nHeader['Accept'] set to 'application/geo+json'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "csourceRegistrations" "endpoint": "csourceRegistrations"
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/" "endpoint": "entities/"
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_id_pattern=${entity_id_pattern}' with entity_types set to '${entity_types_to_be_retrieved}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_id_pattern=${entity_id_pattern}' with entity_types set to '${entity_types_to_be_retrieved}\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/" "endpoint": "entities/"
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'attrs=${attributes_to_be_retrieved}'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'attrs=${attributes_to_be_retrieved}'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/" "endpoint": "entities/"
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/" "endpoint": "entities/"
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_id_pattern=${entity_id_pattern}' with entity_types set to '${entity_types_to_be_retrieved}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_id_pattern=${entity_id_pattern}' with entity_types set to '${entity_types_to_be_retrieved}\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/" "endpoint": "entities/"
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/" "endpoint": "entities/"
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_types=${entity_types_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_types=${entity_types_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/" "endpoint": "entities/"
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_id_pattern=${invalid_entity_id_pattern}' with entity_types set to '${entity_types_to_be_retrieved}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_id_pattern=${invalid_entity_id_pattern}' with entity_types set to '${entity_types_to_be_retrieved}\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/" "endpoint": "entities/"
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/" "endpoint": "entities/"
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "entities/" "endpoint": "entities/"
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Request response body containing a list that contains Entity Temporal Elements\n compared with file 'vehicles-temporal-representation-021-02-expectation.jsonld'\n and using the list of entity ids define in '${temporal_entities_representation_ids}' and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Request response body containing a list that contains Entity Temporal Elements\n compared with file 'vehicles-temporal-representation-021-02-expectation.jsonld'\n and using the list of entity ids define in '${temporal_entities_representation_ids}' and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n Response containing:\n * Entity-Type is equal to '${entity_types_to_be_retrieved}'\n * timeRel is equal to 'after'\n * timeAt is equal to '2020-07-01T12:05:00Z'\n * Accept is equal to 'attrs=${temporal_attributes_to_be_retrieved}'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: entity_types set to '${entity_types_to_be_retrieved}' and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-07-01T12:05:00Z' and\n Query Parameter: attrs set to '${temporal_attributes_to_be_retrieved}' and\n Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "temporal/entities" "endpoint": "temporal/entities"
} }
......
{
"tp_id": "TP/NGSI-LD/CI/Cons/TE/021_03",
"test_objective": "Check that you can query the temporal evolution of the last N instances of entities attributes",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_4",
"keywords": [
"Setup Initial Entities",
"Delete Initial Entities"
],
"teardown": "Delete Initial Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "021_03_01 Query the temporal evolution of the last N instances of entities attributes",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/021_03_01",
"doc": "Check that you can query the temporal evolution of the last N instances of entities attributes",
"tags": [
"5_7_4",
"te-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Request response body containing a list that contains Entity Temporal Elements\n compared with file 'vehicles-temporal-representation-021-03-expectation.jsonld'\n and using the list of entity ids define in '${temporal_entities_representation_ids}' and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: entity_types set to '${entity_types_to_be_retrieved}' and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-07-01T12:05:00Z' and\n Query Parameter: lastN set to '14' and\n Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld'\n}",
"http_verb": "GET",
"endpoint": "temporal/entities"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities",
"robotfile": "021_03"
}
\ No newline at end of file