@@ -84,8 +84,11 @@ Check that a notification is sent with all attributes in simplified format
Dictionary Should Contain Key${notification}data
Should Not Be Empty${notification}[data]Notification data should not be empty
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 EqualBuilding1${notification}[data][0][name][value]
Dictionary Should Contain Key'${notification}[data][0]https://ngsi-ld-test-suite/context#almostFull
Dictionary Should Contain Key'${notification}[data][0]https://ngsi-ld-test-suite/context#airQualityLevel
Dictionary Should Contain Key'${notification}[data][0]https://ngsi-ld-test-suite/context#subCategory
${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
*** Keywords ***
Check that a notification is only sent if statis is active
[Arguments]${fragment_filename}
[Documentation]A 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
[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}
Add Initial Entity
${entity_id}=Generate Random Entity Id${building_id_prefix}