Specifications:

  • Aggregated Status receives aggregated status

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

    
    
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    # File 'spec/supervisor/aggregated_status_spec.rb', line 7
    
    Validator::Supervisor.connected do |task,site,supervisor_proxy|
            component = site.find_component 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: Validator.get_config('timeouts','acknowledgement'),
              num: 1
            }
          end