DocumentationIf a Subscription does not define a timeInterval term, the notification shall be sent whenever there is a change in the watched Attributes. The notification message shall include all the subscribed Entities that changed and that match (as mandated by clauses 4.9 and4.10) the query and geoquery conditions
Check that a notification is send with all entities
[Arguments]${fragment_filename}
[Documentation]The notification message shall include all the subscribed Entities that changed and that match (as mandated by clauses 4.9 and4.10) the query and geoquery conditions
[Tags]sub-notification5_11_7
${subscription_id}=Generate Random Entity Id${subscription_id_prefix}
${subscription_payload}=Load Subscription Sample With Reachable Endpoint${subscription_payload_file_path}${subscription_id}
${entity_id}=Generate Random Entity Id${building_id_prefix}
@@ -55,6 +55,35 @@ Wait for notification and validate it
# TODO Currently we check entities information of the first CSR returned in the notification, find a way to check them all
Run Keyword If${expected_notification_data_entities_length}>0Check Notification Data Entities${notification}[data][0][information]${expected_notification_data_entities}
Wait for subscription notification and validate it
Should Be Equal'${notification_data_length}''${expected_notification_data_length}'
# TODO Currently we check entities information of the first CSR returned in the notification, find a way to check them all
Run Keyword If${expected_notification_data_entities_length}>0Check Notification Data Entities${notification}[data][0][information]${expected_notification_data_entities}
Wait for no notification
[Arguments]${timeout}=${5}
#HTTP server receives it and checks incoming request for correctness