Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-13315

Lab grade should check for python package name in lowercase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • DO374 - RHAAP2.2-en-1-20230131
    • DO374
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • 9
    • ILT, VT
    • Hide

      Follow Chapter 9 review Lab instructions

      Show
      Follow Chapter 9 review Lab instructions
    • en-US (English)

      Please fill in the following information:


      URL: https://rol.redhat.com/rol/app/courses/do374-2.2/pages/ch07s07
      Reporter RHNID: skareiva
      Section Title:                                                                        

      Issue description

      Chapter 9 Lab: Creating Content Collections and Execution Environments.

      Instruction step 1: It also requires the Pillow and qrcode Python packages. Configure your collection to specify those two Python dependencies.
      Once installed, Pillow package appears in lowercase, i.e.:

      $ pip list
      Package Version
      ------- -------
      pillow  10.3.0
      pip     23.3.2

      Steps to reproduce:

      Proceed with Lab instructions

      Workaround:

      No workaround from the perspective of trainees.

      Change line 19 of file: do374/ansible/grading/hub_ee/tasks/python_packages.yml (add lower filter):

        actual: "{{ python_package_details | selectattr('name', '==', python_item | lower ) | map(attribute='name') }}"

      Or set variables in do374/ansible/inventory/group_vars/private_automation_hub/ee.yml:

      hub_ee_repo_review_training.python_packages:

       - pillow

       - qrcode

      Expected result:

      Lab grade create-review should pass

            glsbugs-automation@redhat.com PTL - Ansible Team
            skareiva Simonas Kareiva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: