RHUI CLI Tests

RHUI CLI tests

class rhui3_tests.test_cmdline.TestCLI[source]

class for CLI tests

static setup_class()[source]

announce the beginning of the test run

static teardown_class()[source]

announce the end of the test run

static test_01_init_repo_check()[source]

log in to RHUI, check if the repo list is empty

static test_02_create_custom_repos()[source]

create three custom repos for testing

static test_03_custom_repo_checks()[source]

check if the custom repo cannot be added twice and if the GPG key path is validated

static test_04_check_custom_repos()[source]

check if the custom repos were actually created

static test_05_upload_local_rpms()[source]

upload content from a local directory to one of the custom repos

test_06_upload_remote_rpms()[source]

upload content from remote servers to the custom repos

test_07_check_packages()[source]

check that the uploaded packages are now in the repos

static test_08_upload_certificate()[source]

upload the Atomic (the small) entitlement certificate

test_09_check_certificate_info()[source]

check certificate info for validity

static test_10_check_certificate_exp()[source]

check if the certificate expiration date is OK

test_11_check_unused_product()[source]

check if a repo is available

test_12_add_rh_repo_by_id()[source]

add a Red Hat repo by its ID

test_13_add_rh_repo_by_product()[source]

add a Red Hat repo by its product name

test_14_repo_list()[source]

check the added repos

test_15_start_syncing_repo()[source]

sync one of the repos

test_16_repo_info()[source]

verify that the repo name is part of the information about the specified repo ID

test_17_check_package_in_repo()[source]

check a random package in the repo

test_18_list_labels()[source]

check repo labels

test_19_generate_certificate()[source]

generate an entitlement certificate

static test_20_check_cli_crt_sig()[source]

check if SHA-256 is used in the client certificate signature

test_21_check_stray_custom_repo()[source]

check if only the wanted repos are in the certificate

static test_22_create_cli_config_rpm()[source]

create a client configuration RPM

test_23_ensure_gpgcheck_config()[source]

ensure that GPG checking is configured in the client configuration as expected

static test_24_ensure_proxy_config()[source]

ensure that the proxy setting is used in the client configuration

static test_25_custom_repo_used()[source]

check if the protected custom repo is included in the client configuration

test_26_create_acs_config_rpm()[source]

create an alternate content source configuration RPM

static test_27_upload_expired_cert()[source]

check expired certificate handling

static test_28_upload_incompat_cert()[source]

check incompatible certificate handling

test_29_register_system()[source]

register the system in RHSM, attach the RHUI subscription

static test_30_fetch_available_pool()[source]

fetch the available pool ID

static test_31_register_subscription()[source]

register the subscription using the fetched pool ID

static test_32_fetch_registered_pool()[source]

fetch the registered pool ID

static test_33_compare_pools()[source]

check if the previously available and now registered pool IDs are the same

test_34_check_reg_pool_for_rhui()[source]

check if the registered subscription’s description is RHUI for CCSP

static test_35_unregister_subscription()[source]

remove the subscription from RHUI

static test_36_unregister_system()[source]

unregister the system from RHSM

test_37_resync_repo()[source]

sync the repo again

static test_38_resync_no_warning()[source]

check if the syncs did not cause known unnecessary warnings

static test_39_list_repos()[source]

get a list of available repos for further examination

static test_40_check_iso_repos()[source]

check if non-RPM repos were ignored

static test_41_check_pygiwarning()[source]

check if PyGIWarning was not issued

test_42_check_repo_sorting()[source]

check if repo lists are sorted

test_43_upload_semi_bad_cert()[source]

check that a partially invalid certificate can still be accepted

static test_44_upload_empty_cert()[source]

check that an empty certificate is rejected (no traceback)

test_45_multi_repo_product()[source]

check that all repos in a multi-repo product get added

test_99_cleanup()[source]

cleanup: remove repos and temporary files