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
- Given the supervisor is connected
- When we send an aggregated status with a high priority alarm
- 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