Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1131 convert2rhel --help does not work as an unprivileged user
  3. RHELC-1405

convert2rhel --help does not work as an unprivileged user - Integration tests

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • 1.7.0
    • None
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • 1
    • 2023-R4, 2024-R1
    • Testable

      The parent issue RHELC-1131 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:
      Convert2rhel performs a check to see if the user is root since the analysis and conversion both require root permissions.  Additionally, the application lock that is new in 1.4 also requires root permissions.

      However, the check for root is happening before we parse the command line.  This means that we cannot print the –help message unless the user is root.  Other, similar programs will print the help message for an unprivileged user (Example: yum --help) so this should be considered a bug.

       

      Acceptance Criteria

      • As an unprivileged user, type{
        Unknown macro: {convert2rhel --help}

        }

      • Convert2rhel prints its help message and exits.
      • Implementation note:  The code for this should not be placed in initialize.py as initialize.py exists for things which need to happen before we import certain other modules. We need to keep that code simple and only put things that are really necessary there.

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

                Created:
                Updated:
                Resolved: