Custom GPG Key Verification Tests

Tests for working with a custom GPG key in a custom repo

rhui4_tests.test_gpg.setup()[source]

announce the beginning of the test run

rhui4_tests.test_gpg.teardown()[source]

announce the end of the test run

rhui4_tests.test_gpg.test_01_initial_run()[source]

log in to RHUI

rhui4_tests.test_gpg.test_02_add_cds()[source]

add a CDS

rhui4_tests.test_gpg.test_03_add_hap()[source]

add an HAProxy Load-balancer

rhui4_tests.test_gpg.test_04_create_custom_repo()[source]

add a custom repo using a custom GPG key

rhui4_tests.test_gpg.test_05_upload_to_custom_repo()[source]

upload an unsigned and two differently signed packages to the custom repo

rhui4_tests.test_gpg.test_06_display_detailed_info()[source]

check detailed information on the repo

rhui4_tests.test_gpg.test_07_generate_ent_cert()[source]

generate an entitlement certificate

rhui4_tests.test_gpg.test_08_create_cli_rpm()[source]

create a client configuration RPM

rhui4_tests.test_gpg.test_09_install_conf_rpm()[source]

install the client configuration RPM

rhui4_tests.test_gpg.test_10_install_signed_pkg()[source]

install the signed package from the custom repo (will import the GPG key)

rhui4_tests.test_gpg.test_11_check_gpg_sig()[source]

check the signature in the installed package

rhui4_tests.test_gpg.test_12_check_gpg_pubkey()[source]

check if the public GPG key was imported

rhui4_tests.test_gpg.test_13_install_unsigned_pkg()[source]

try installing the unsigned package, should not work

rhui4_tests.test_gpg.test_14_install_2nd_signed_pkg()[source]

try installing the package signed with the key unknown to the client, should not work

rhui4_tests.test_gpg.test_99_cleanup()[source]

clean up