RHUI CLI Tests

RHUI CLI tests

class rhui4_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 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

test_27_create_acs_config_json()[source]

create an alternate content source configuration JSON file

static test_28_upload_expired_cert()[source]

check expired certificate handling

static test_29_upload_incompat_cert()[source]

check incompatible certificate handling

static test_30_remove_package()[source]

check if a package can be removed from a custom repo

test_31_remove_all_packages()[source]

remove all packages from a custom repo

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_repo_export()[source]

test the repo export feature

test_44_upload_semi_bad_cert()[source]

check that a partially invalid certificate can still be accepted

static test_45_upload_empty_cert()[source]

check that an empty certificate is rejected (no traceback)

test_46_multi_repo_product()[source]

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

static test_47_add_by_file()[source]

check that all repos defined in an input file get added

static test_48_rhui_scripts()[source]

test argument handling in rhui-* scripts

static test_49_rhui_manager_help()[source]

test help handling in rhui-manager

static test_50_caller_name()[source]

check if rhui-manager gets the caller’s login name correctly

static test_51_sync_invalid_repo()[source]

check if rhui-manager correctly handles syncing an invalid repo

static test_52_delete_invalid_repo()[source]

check if rhui-manager correctly handles deleting an invalid repo

test_53_migrate_repos_already_added()[source]

check for a proper exit code if migration is run when a repo already exists

static test_99_cleanup()[source]

cleanup: remove temporary files