Specifications:

    • Connection Sequence exchanges correct connection sequence of rsmp version 3.1.1

      Verify the connection sequence when using rsmp core 3.1.1

      1. Given the site is connected and using core 3.1.1

      2. Send and receive handshake messages

      3. Expect the handshake messages to be in the specified sequence corresponding to version 3.1.1

      4. Expect the connection sequence to be complete

      
      
      90
      # File 'spec/supervisor/connect_spec.rb', line 90
      
      check_sequence '3.1.1'
    • Connection Sequence exchanges correct connection sequence of rsmp version 3.1.2

      Verify the connection sequence when using rsmp core 3.1.2

      1. Given the site is connected and using core 3.1.2

      2. Send and receive handshake messages

      3. Expect the handshake messages to be in the specified sequence corresponding to version 3.1.2

      4. Expect the connection sequence to be complete

      
      
      100
      # File 'spec/supervisor/connect_spec.rb', line 100
      
      check_sequence '3.1.2'
    • Connection Sequence exchanges correct connection sequence of rsmp version 3.1.3

      Verify the connection sequence when using rsmp core 3.1.3

      1. Given the site is connected and using core 3.1.3

      2. Send and receive handshake messages

      3. Expect the handshake messages to be in the specified sequence corresponding to version 3.1.3

      4. Expect the connection sequence to be complete

      
      
      110
      # File 'spec/supervisor/connect_spec.rb', line 110
      
      check_sequence '3.1.3'
    • Connection Sequence exchanges correct connection sequence of rsmp version 3.1.4

      Verify the connection sequence when using rsmp core 3.1.4

      1. Given the site is connected and using core 3.1.4

      2. Send and receive handshake messages

      3. Expect the handshake messages to be in the specified sequence corresponding to version 3.1.4

      4. Expect the connection sequence to be complete

      
      
      120
      # File 'spec/supervisor/connect_spec.rb', line 120
      
      check_sequence '3.1.4'
    • Connection Sequence exchanges correct connection sequence of rsmp version 3.1.5

      Verify the connection sequence when using rsmp core 3.1.5

      1. Given the site is connected and using core 3.1.5

      2. Send and receive handshake messages

      3. Expect the handshake messages to be in the specified sequence corresponding to version 3.1.5

      4. Expect the connection sequence to be complete

      
      
      130
      # File 'spec/supervisor/connect_spec.rb', line 130
      
      check_sequence '3.1.5'
    • Connection Sequence exchanges correct connection sequence of rsmp version 3.2

      Verify the connection sequence when using rsmp core 3.2

      1. Given the site is connected and using core 3.2

      2. Send and receive handshake messages

      3. Expect the handshake messages to be in the specified sequence corresponding to version 3.1.5

      4. Expect the connection sequence to be complete

      
      
      140
      # File 'spec/supervisor/connect_spec.rb', line 140
      
      check_sequence '3.2'
    • Connection Sequence exchanges correct connection sequence of rsmp version 3.2.1

      Verify the connection sequence when using rsmp core 3.2.1

      1. Given the site is connected and using core 3.2.1

      2. Send and receive handshake messages

      3. Expect the handshake messages to be in the specified sequence corresponding to version 3.1.5

      4. Expect the connection sequence to be complete

      
      
      150
      # File 'spec/supervisor/connect_spec.rb', line 150
      
      check_sequence '3.2.1'
    • Connection Sequence exchanges correct connection sequence of rsmp version 3.2.2

      Verify the connection sequence when using rsmp core 3.2.2

      1. Given the site is connected and using core 3.2.2

      2. Send and receive handshake messages

      3. Expect the handshake messages to be in the specified sequence corresponding to version 3.1.5

      4. Expect the connection sequence to be complete

      
      
      160
      # File 'spec/supervisor/connect_spec.rb', line 160
      
      check_sequence '3.2.2'
    • 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