Uploaded image for project: 'transportpce'
  1. transportpce
  2. TRNSPRTPCE-674

Support parameterization of hard-coded SIMS attributes

    XMLWordPrintable

Details

    • New Feature
    • Status: In Review
    • Medium
    • Resolution: Unresolved
    • None
    • unspecified
    • None
    • None

    Description

      Certain node attributes are hard-coded into test_utils.py and test_utils_rfc8040.py, including username (openroadm), password (openroadm), and host (127.0.0.1). To facilitate using the existing tox testing framework for physical devices, we propose to add support for username, password, and host as additional optional key-value pairs in the simulators.py file.

      If the new key-value pairs are not present in simulators.py, the normal defaults will apply. In order to take advantage of this new feature, the person doing the testing of physical devices would need to edit the simulators.py file by hand.

      E.g.:

      SIMS = {    ('xpdra', '1.2.1'): {'port': '17830', 'configfile': 'oper-XPDRA.xml', 'logfile': 'xpdra-121.log', 'username': 'person123', 'password': 'MyPassword', 'host': '192.168.5.55'},

       

      Additionally, if the start_sims function sees that a particular node has a host override specified in the SIM dictionary, it will skip starting a Honeynode instance for it. This would potentially allow for mixed physical/honeynode test environments.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            nathan.ellsworth Nathan Ellsworth
            nathan.ellsworth Nathan Ellsworth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 2 weeks
                2w
                Remaining:
                Remaining Estimate - 2 weeks
                2w
                Logged:
                Time Spent - Not Specified
                Not Specified