Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: various misc changes #81

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Commits on Oct 25, 2024

  1. test: use onlyImage() from cockpit test lib

    Use the onlyImage() decorator provided by the test lib of cockpit,
    replacing the usage of our own skipUnlessDistroFamily().
    
    There is no behaviour change.
    ptoscano committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    f0d3626 View commit details
    Browse the repository at this point in the history
  2. test: upload product certificates to /etc/pki/product-default

    That is their canonical location.
    ptoscano committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    4dd64e5 View commit details
    Browse the repository at this point in the history
  3. test: drop extra activation key code

    The Python snippet to add a pool to an activation key in practice does
    not work anymore for two reasons:
    1) the test data in the self-deployed Candlepin changed
    2) the test account used is based on SCA
    and the result of the last POST in the script is:
      {
        "displayMessage" : "Multi-entitlement not supported for pool \"Pool [id: 8a8082e491b0fb160191b0fb37e20233, type: NORMAL, product: sfs, productName: Shared File System, quantity: 5]\"",
        "requestUuid" : "8e43664e-e720-4cb8-8a99-bfe3cd49af2c"
      }
    
    Especially because of (2), it is possible to get rid of the script
    altogether, and simply use the available activation keys.
    
    There is no behaviour change.
    ptoscano committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    3573ebd View commit details
    Browse the repository at this point in the history
  4. test: use curl directly to wait for Candlepin

    Instead of running a Python script to wait for Candlepin to start, use
    curl to do the busy-wait loop. Keep the initial delay as-is, performing
    it inline.
    
    There should be no behaviour changes.
    ptoscano committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    5d4840a View commit details
    Browse the repository at this point in the history
  5. test: use f-strings to replace other string formattings

    Use f-strings to replace C-like placeholders and format() calls.
    
    There is no behaviour change.
    ptoscano committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    7c42af1 View commit details
    Browse the repository at this point in the history
  6. test: use a simpler way to append content to a file

    Use the existing API of a cockpit Machine, rather than running a shell
    command manually.
    
    There is no behaviour change.
    ptoscano committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    13ab574 View commit details
    Browse the repository at this point in the history
  7. test: drop no more used machine_python() helper function

    There are no more Python scripts to run as part of the tests.
    ptoscano committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    baa7333 View commit details
    Browse the repository at this point in the history