Class: SubscriptionsTestKit::SubscriptionsR5BackportR4Server::HeartbeatConformanceTest
- Inherits:
-
Inferno::Test
- Object
- Inferno::Test
- SubscriptionsTestKit::SubscriptionsR5BackportR4Server::HeartbeatConformanceTest
- Includes:
- NotificationConformanceVerification
- Defined in:
- lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/handshake_heartbeat/heartbeat_conformance_test.rb
Instance Method Summary collapse
Methods included from NotificationConformanceVerification
#check_bundle_entry_reference, #check_entry_request_and_response, #check_history_bundle_request_response, #check_notification_event_additional_context, #check_notification_event_focus, #empty_event_notification_verification, #empty_notification_event_references, #empty_notification_verification, #find_all_elems, #find_elem, #full_resource_event_notification_verification, #full_resource_notification_criteria_resource_check, #full_resource_notification_event_parameter_verification, #id_only_event_notification_verification, #id_only_notification_event_parameter_verification, #no_error_verification, #notification_verification, #parameters_verification, #subscription_criteria, #verify_full_resource_notification_bundle_entries, #verify_id_only_notification_bundle_entries
Instance Method Details
#heartbeat_period?(subscription_extensions) ⇒ Boolean
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/handshake_heartbeat/heartbeat_conformance_test.rb', line 26 def heartbeat_period?(subscription_extensions) return false if subscription_extensions.blank? heartbeat = subscription_extensions.find do |extension| extension['url'].ends_with?('/backport-heartbeat-period') end return false if heartbeat.blank? heartbeat['valueUnsignedInt'].present? end |