Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1327 Port existing Post-PONR functions to the Action framework
  3. RHELC-1616

Port existing Post-PONR functions to the Action framework - Integration tests

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Normal Normal
    • 2.1.0
    • None
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • 3
    • Testable

      The parent issue RHELC-1327 has the label that triggered autocreation of this subtask to track the relative story point estimation for the integration test part of the issue.

      The parent issue description at the time of creation of this issue was:
      To create a post conversion report, we require the functions running after the PONR to be ported to the Action framework.

      This includes two main subdivisions of post PONR conversion steps and post PONR final changes:

      Post PONR conversion steps

      • Calling the transaction handler to replace system packages
      • Preparing the kernel
      • Displaying the remaining non-Red Hat packages
      • Configuring the bootloader
      • Patching the yum configuration file
      • Locking the releasever in RHEL repositories

      Post PONR final changes

      • Displaying RPM files modified by the conversion
      • Updating the GRUB2 configuration
      • Removing the temporary folder 
      • Checking kernel boot files
      • Updating the custom RHSM facts

      Acceptance Criteria

      Action

      1) An action ID and action dependencies are defined

      2) An action class is created with the name being based on the functions purpose

      3) A run() method is created to hold the contents of the function being converted to an action

      4) Any logger critical calls (System Exits) are replaced with set_result() calls to create an error level result (ERROR, OVERRIDABLE) for reporting the logger.critical contents

      5) Any relevant logger warning or logger info calls are replaced with add_message() calls to add to the list of reported messages for the report

      Unit tests

      6) Create a fixture that returns an instance of the action you are testing

      7) Invoke the action and assert any results defined in the action using the assert_actions_result() method and any messages using issuperset() and issubset().

       

       

              Unassigned Unassigned
              rhel-process-autobot RHEL Jira bot
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: