[Documentation]The notification.lastNotification member shall be updated with a timestamp representing the current date and time. This test will check the format.
[Documentation]The status, lastNotification and lastSuccess members shall be updated with expected value and dates. This test will check these formats.
[Tags]sub-notification5_11_7046_12
Add Initial Entity
@@ -55,12 +55,23 @@ Check that lastNotification is updated
DocumentationThe notification.lastNotification member shall be updated with a timestamp representing the current date and time. This test will check the format.
DocumentationIf the response to the notification request is different than 200 OK then implementations shall: Update notification.lastFailure with a timestamp representing the current date and time, update notification.status to "failed
Check that a notification is only sent if statis is active
[Documentation]The notification.lastNotification member shall be updated with a timestamp representing the current date and time. This test will check the format.
Check that lastFailure and status are updated if a notification could not be sent
[Documentation]If the response to the notification request is different than 200 OK then implementations shall: Update notification.lastFailure with a timestamp representing the current date and time, update notification.status to "failed
[Tags]sub-notification5_11_7046_13
${entity_id}=Generate Random Entity Id${building_id_prefix}
DocumentationIf the response to the notification request is different than 200 OK then implementations shall: Update notification.lastFailure with a timestamp representing the current date and time., Update notification.status to "failed
DocumentationA Notification shall be sent (as mandated by each concrete binding and including any optional endpoint.info defined by clause 5.2.22) to the endpoint specified by the endpoint.uri member of the notification structure defined by clause 5.2.14
Check that a notification is only sent if statis is active
[Documentation]If the response to the notification request is different than 200 OK then implementations shall: Update notification.lastFailure with a timestamp representing the current date and time., Update notification.status to "failed
[Tags]sub-notification5_11_7046_14
*** Keywords ***
Setup Initial Subscriptions
${subscription_id}=Generate Random Entity Id${subscription_id_prefix}
${subscription_payload}=Load Subscription Sample With Reachable Endpoint${subscription_payload_file_path}${subscription_id}${notification_server_send_url}
${subscription_payload}=Set Entity Id In Subscription${subscription_payload}${entity_id}
Create Subscription From Subscription Payload${subscription_payload}${CONTENT_TYPE_LD_JSON}
Set Suite Variable${subscription_id}
Delete Initial Subscriptions
Delete Subscription${subscription_id}
Before Test
NotificationUtils.Start Local Server${notification_server_host}${notification_server_port}
After Test
Delete Initial Subscriptions
Delete Initial Entity
Stop Local Server
Add Initial Entity
${entity_id}=Generate Random Entity Id${building_id_prefix}
DocumentationA Notification shall be sent (as mandated by each concrete binding and including any optional endpoint.info defined by clause 5.2.22) to the endpoint specified by the endpoint.uri member of the notification structure defined by clause 5.2.14