Skip to content

[IS-05-01] test_24 IndexError: list index out of range #843

@MichalChomo

Description

@MichalChomo

Traceback:

  File "/home/nmos-testing/nmostesting/GenericTest.py", line 155, in execute_test
    self.result.append(method(test))
  File "/home/nmos-testing/nmostesting/suites/IS0501Test.py", line 572, in test_24
    valid2, response2 = self.is05_utils.check_change_transport_param("receiver", self.receivers,
  File "/home/nmos-testing/nmostesting/IS05Utils.py", line 418, in check_change_transport_param
    expected = paramValues[count]
IndexError: list index out of range

I think this is because our implementation currently returns empty list for /x-nmos/connection/v1.1/single/receivers/{receiverId}/constraints/, therefore:

  1. generate_destination_ports returns []
  2. generate_changeable_param returns []
  3. check_change_transport_param tries to get element at index 0, but the list is empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions