Newer
Older
{
"tp_id": "TP/NGSI-LD/CI/SUB/046_05",
"test_objective": "If a Subscription does not define a timeInterval member, the notification shall be sent whenever there is a change in the watched Attributes and the entity matches the q parameter. The notification message shall include all the subscribed Entities that changed and that match (as mandated by clauses 4.9 and 4.10) the query and geoquery conditions",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.8.6",
"config_id": "",
"parent_release": "v1.3.1",
"clauses": [
"5.8.6"
],
"pics_selection": "",
"keywords": [
"Before Test",
"After Test"
],
"teardown": "After Test",
lopezaguilar
committed
"initial_condition": "with {\n the SUT containing an initial state\n}",
"test_cases": [
{
"name": "046_05_01 Check that a notification is sent with all entities",
"permutation_tp_id": "TP/NGSI-LD/CI/SUB/046_05_01",
"doc": "The notification message shall include all the subscribed Entities that changed and that match (as mandated by clauses 4.9 and 4.10) the query and geoquery conditions",
"tags": [
"sub-notification"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the client at '${endpoint}' receives a valid Notification containing:\n Notification received After waiting '5' seconds and\n Notification received Notification data: '${notification}[subscriptionId]' equal to '${subscription_id}' and\n Notification received Notification data: '${notification}[data][0][id]' equal to '${entity_id}' and\n Notification received Notification data: '${notification}[data][0][name][value]' equal to 'Eiffel Tower' and\n Notification received The dictionary `${notification}' should contain the key 'data' and\n Notification received The variable `${notification}[data]' should not be '${EMPTY}' and\n Notification received The expression `'${notification}[data][0][airQualityLevel][value]'=='5.0' or '${notification}[data][0][airQualityLevel][value]'=='5'' should be True\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 Update Entity Attributes and\n Query Parameter: id set to '${entity_id}' and\n Query Parameter: fragment_filename set to 'airQualityLevel-fragment.jsonld' and\n Query Parameter: content_type set to 'application/ld+json'\n}",
"http_verb": "PATCH",
}
],
"permutations": [],
"robotpath": "ContextInformation/Subscription/SubscriptionNotificationBehaviour",
"robotfile": "046_05"
}