Aggregated Status

Validate behaviour related to aggregated status messages

Tests

Aggregated Status receives aggregated status

Validate that the supervisor responds correctly when we send an aggregated status message

  1. Given the supervisor is connected
  2. When we send an aggregated status with a high priority alarm
  3. Then the supervisor should acknowledge the message
View Source
it 'receives aggregated status' do
  with_supervisor(:connected) do |supervisor_proxy|
    component = supervisor_proxy.node.find_component RSMP::Validator.get_config('main_component')
    # setting ':collect' will cause set_aggregated_status() to wait for the
    # outgoing aggregated status is acknowledged
    component.set_aggregated_status :high_priority_alarm, collect!: {
      timeout: RSMP::Validator.get_config('timeouts', 'acknowledgement'),
      num: 1
    }
  end
end

This site uses Just the Docs, a documentation theme for Jekyll.