WARNING! Gitlab maintenance operation scheduled for Monday, 20 April between 12:00 and 14:00 (CET). During this time window, short service interruptions (less than 5 minutes) may occur. Thank you in advance for your understanding.
NotificationUtils.Start Local Server${notification_server_host}${notification_server_port}
After Test
Delete Initial Subscriptions
Delete Initial Entity
Stop Local Server
*** Test Case ***
*** Test Case ***
Check that a notification is send on the timeinterval
Check that a notification is send on the timeinterval
[Documentation]If a Subscription defines a timeInterval member, a Notification shall be sent periodically, when the time interval (in seconds) specified in such value field is reached, regardless of Attribute changes."
[Documentation]If a Subscription defines a timeInterval member, a Notification shall be sent periodically, when the time interval (in seconds) specified in such value field is reached, regardless of Attribute changes."
[Tags]sub-notification5_11_7
[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}
Setup Initial Subscriptions
${entity_id}=Generate Random Entity Id${building_id_prefix}
Add Initial Entity
Set Suite Variable${subscription_id}
Wait for notificationtimeout=${15}
Sleep11
${notification}=Wait for notificationtimeout=${15}
Output${notification}
${notification}=Wait for notificationtimeout=${15}
Output${notification}
Should be Equal${subscription_id}${notification}[subscriptionId]
Should be Equal${entity_id}${notification}[data][0][id]
Should be True'${notification}[data][0][https://ngsi-ld-test-suite/context#airQualityLevel][value]'=='4.0' or '${notification}[data][0][https://ngsi-ld-test-suite/context#airQualityLevel][value]'=='4'
Should be EqualEifel Tower${notification}[data][0][name][value]