Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1390

Port function:: hostmetering.configure_host_metering() to Action framework

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • 2.1.0
    • None
    • None
    • 2
    • Testable

      This port of hostmetering.configure_host_metering() will handle configuring host metering and will be in the post_conversion section of actions.

       

      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().

              ahosek@redhat.com Adam Hosek
              prwatson@redhat.com Preston Watson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: