Welcome to the RHUI 3 Test Plan!

Atomic Client Tests

Atomic client tests (RHEL 7+ only)

class rhui3_tests.test_atomic_client.TestClient[source]

class for Atomic client 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_initial_run()[source]

log in to RHUI

static test_02_add_cds()[source]

add a CDS

static test_03_add_hap()[source]

add an HAProxy Load-balancer

static test_04_upload_atomic_cert()[source]

upload the Atomic cert

test_05_add_atomic_repo()[source]

add the RHEL Atomic Host (Trees) from RHUI repo

test_06_start_atomic_repo_sync()[source]

start syncing the repo

test_07_generate_atomic_cert()[source]

generate an entitlement certificate for the repo

static test_08_create_atomic_pkg()[source]

create an Atomic client configuration package

test_09_wait_for_sync()[source]

wait until the repo is synced (takes a while)

static test_10_install_atomic_pkg()[source]

install the Atomic client configuration package on the Atomic host

test_11_sync_again()[source]

sync the repo again (workaround for RHBZ#1427190)

static test_12_wait_for_pulp_tasks()[source]

wait until the repo publish task is complete (takes extra time)

test_13_pull_atomic_content()[source]

pull Atomic content

test_14_check_fetched_file()[source]

check if the repo data was fetched on the client

static test_15_check_registry_config()[source]

check if container registry configuration was modified

test_99_cleanup()[source]

remove the repo and RH cert, uninstall CDS and HAProxy, delete the ostree configuration

Atomic Host Checks

Atomic Host Checks

rhui3_tests.test_atomic_host_checks.setup()[source]

announce the beginning of the test run

rhui3_tests.test_atomic_host_checks.teardown()[source]

announce the end of the test run

rhui3_tests.test_atomic_host_checks.test_01_check_version()[source]

check if the Atomic host is running the latest documented version

CDS Management Tests

CDS management tests

rhui3_tests.test_cds.setup()[source]

announce the beginning of the test run

rhui3_tests.test_cds.teardown()[source]

announce the end of the test run

rhui3_tests.test_cds.test_01_initial_run()[source]

log in to RHUI

rhui3_tests.test_cds.test_02_list_empty_cds()[source]

check if there are no CDSs

rhui3_tests.test_cds.test_03_add_cds()[source]

add all known CDSs

rhui3_tests.test_cds.test_04_list_cds()[source]

list CDSs, expect as many as there are in /etc/hosts

rhui3_tests.test_cds.test_05_readd_cds()[source]

add one of the CDSs again (reapply the configuration)

rhui3_tests.test_cds.test_06_list_cds()[source]

check if the CDSs are still tracked

rhui3_tests.test_cds.test_07_delete_nonexisting_cds()[source]

try deleting an untracked CDS, should be rejected (by rhui3_tests_lib)

rhui3_tests.test_cds.test_08_delete_cds()[source]

delete all CDSs

rhui3_tests.test_cds.test_09_list_cds()[source]

list CDSs, expect none

rhui3_tests.test_cds.test_10_check_cleanup()[source]

check if Apache was stopped and the remote file system unmounted on all CDSs

rhui3_tests.test_cds.test_11_add_cds_uppercase()[source]

add (and delete) a CDS with uppercase characters

rhui3_tests.test_cds.test_12_delete_unreachable()[source]

add a CDS, make it unreachable, and see if it can still be deleted from the RHUA

rhui3_tests.test_cds.test_13_delete_select_0()[source]

add a CDS and see if no issue occurs if it and “a zeroth” (ghost) CDSs are selected for deletion

rhui3_tests.test_cds.test_14_verbose_reporting()[source]

check if a failure is reported properly (if puppet is verbose)

CDS Management Tests for the CLI

CDS management tests for the CLI

rhui3_tests.test_cds_cmd.setup()[source]

announce the beginning of the test run

rhui3_tests.test_cds_cmd.teardown()[source]

announce the end of the test run

rhui3_tests.test_cds_cmd.test_01_init()[source]

log in to RHUI

rhui3_tests.test_cds_cmd.test_02_list_cds()[source]

check if there are no CDSs

rhui3_tests.test_cds_cmd.test_03_add_cds()[source]

add all known CDSs

rhui3_tests.test_cds_cmd.test_04_list_cds()[source]

check if the CDSs have been added

rhui3_tests.test_cds_cmd.test_05_reinstall_cds()[source]

add one of the CDSs again by reinstalling it

rhui3_tests.test_cds_cmd.test_06_list_cds()[source]

check if the CDSs are still tracked, and nothing extra has appeared

rhui3_tests.test_cds_cmd.test_07_readd_cds_noforce()[source]

check if rhui refuses to add a CDS again if no extra parameter is used

rhui3_tests.test_cds_cmd.test_08_list_cds()[source]

check if nothing extra has been added

rhui3_tests.test_cds_cmd.test_09_readd_cds()[source]

add one of the CDSs again by using force

rhui3_tests.test_cds_cmd.test_10_list_cds()[source]

check if the CDSs are still tracked, and nothing extra has appeared

rhui3_tests.test_cds_cmd.test_11_delete_cds_noforce()[source]

check if rhui refuses to delete the node when it’s the only/last one and force isn’t used

rhui3_tests.test_cds_cmd.test_12_list_cds()[source]

check if the last CDS really hasn’t been deleted

rhui3_tests.test_cds_cmd.test_13_delete_cds_force()[source]

delete the last CDS forcibly

rhui3_tests.test_cds_cmd.test_14_list_cds()[source]

check if the last CDS has been deleted

rhui3_tests.test_cds_cmd.test_15_add_bad_cds()[source]

try adding an incorrect CDS hostname, expect trouble and nothing added

rhui3_tests.test_cds_cmd.test_16_delete_bad_cds()[source]

try deleting a non-existing CDS hostname, expect trouble

rhui3_tests.test_cds_cmd.test_17_add_cds_changed_case()[source]

add and delete a CDS with uppercase characters, should work

rhui3_tests.test_cds_cmd.test_18_add_safe_unknown_key()[source]

try adding a CDS whose SSH key is unknown, without using –unsafe; should fail

rhui3_tests.test_cds_cmd.test_19_add_safe_known_key()[source]

add and delete a CDS whose SSH key is known, without using –unsafe; should work

rhui3_tests.test_cds_cmd.test_20_delete_unreachable()[source]

add a CDS, make it unreachable, and see if it can still be deleted from the RHUA

rhui3_tests.test_cds_cmd.test_21_check_cleanup()[source]

check if Apache was stopped and the remote file system unmounted on all CDSs

rhui3_tests.test_cds_cmd.test_22_verbose_reporting()[source]

check if a failure is reported properly (if puppet is run with –verbose)

CDS-HAProxy Interoperability Tests

CDS-HAProxy Interoperability Tests

rhui3_tests.test_cds_hap_interop.setup()[source]

announce the beginning of the test run

rhui3_tests.test_cds_hap_interop.teardown()[source]

announce the end of the test run

rhui3_tests.test_cds_hap_interop.test_01_login_add_hap()[source]

log in to RHUI, add an HAProxy Load-balancer

rhui3_tests.test_cds_hap_interop.test_02_add_first_cds()[source]

[TUI] add the first CDS

rhui3_tests.test_cds_hap_interop.test_03_check_haproxy_cfg()[source]

check if the first CDS was added to the HAProxy configuration file

rhui3_tests.test_cds_hap_interop.test_04_add_second_cds()[source]

[TUI] add the second CDS

rhui3_tests.test_cds_hap_interop.test_05_check_haproxy_cfg()[source]

check if the second CDS was added to the HAProxy configuration file

rhui3_tests.test_cds_hap_interop.test_06_delete_second_cds()[source]

[TUI] delete the second CDS

rhui3_tests.test_cds_hap_interop.test_07_check_haproxy_cfg()[source]

check if the second CDS (and only it) was deleted from the HAProxy configuration file

rhui3_tests.test_cds_hap_interop.test_08_delete_first_cds()[source]

[TUI] delete the first CDS

rhui3_tests.test_cds_hap_interop.test_09_check_haproxy_cfg()[source]

check if the first CDS was deleted from the HAProxy configuration file

rhui3_tests.test_cds_hap_interop.test_10_add_first_cds()[source]

[CLI] add the first CDS

rhui3_tests.test_cds_hap_interop.test_11_check_haproxy_cfg()[source]

check if the first CDS was added to the HAProxy configuration file

rhui3_tests.test_cds_hap_interop.test_12_add_second_cds()[source]

[CLI] add the second CDS

rhui3_tests.test_cds_hap_interop.test_13_check_haproxy_cfg()[source]

check if the second CDS was added to the HAProxy configuration file

rhui3_tests.test_cds_hap_interop.test_14_delete_second_cds()[source]

[CLI] delete the second CDS

rhui3_tests.test_cds_hap_interop.test_15_check_haproxy_cfg()[source]

check if the second CDS (and only it) was deleted from the HAProxy configuration file

rhui3_tests.test_cds_hap_interop.test_16_delete_first_cds()[source]

[CLI] delete the first CDS

rhui3_tests.test_cds_hap_interop.test_17_check_haproxy_cfg()[source]

check if the first CDS was deleted from the HAProxy configuration file

rhui3_tests.test_cds_hap_interop.test_99_cleanup()[source]

delete the HAProxy Load-balancer

Client Management Tests

Client management tests

class rhui3_tests.test_client_management.TestClient[source]

class for client 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()[source]

log in to RHUI

static test_02_upload_rh_certificate()[source]

upload a new or updated Red Hat content certificate

static test_03_add_cds()[source]

add a CDS

static test_04_add_hap()[source]

add an HAProxy Load-balancer

test_05_add_upload_sync_stuff()[source]

add a custom and RH content repos to protect by a cli entitlement cert, upload rpm, sync

test_06_generate_ent_cert()[source]

generate an entitlement certificate

static test_07_create_cli_rpm()[source]

create a client configuration RPM from the entitlement certificate

static test_08_ensure_gpgcheck_conf()[source]

ensure that GPG checking is enabled in the client configuration

static test_09_check_cli_crt_sig()[source]

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

static test_10_install_conf_rpm()[source]

install the client configuration RPM

test_11_check_repo_sync_status()[source]

check if RH repos have been synced so RPMs can be installed from them

test_12_inst_rpm_custom_repo()[source]

install an RPM from the custom repo

test_13_inst_rpm_rh_repo()[source]

install an RPM from the RH repo

test_14_unauthorized_access()[source]

verify that RHUI repo content cannot be fetched without an entitlement certificate

test_15_check_cli_plugins()[source]

check if irrelevant Yum plug-ins are not enabled on the client with the config RPM

static test_16_release_handling()[source]

check EUS release handling (working with /etc/yum/vars/releasever on the client)

static test_17_legacy_ca()[source]

check for bogus error messages if a legacy CA is used

test_99_cleanup()[source]

remove repos, certs, cli rpms; remove rpms from cli, uninstall cds, hap

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

Comps XML (Yum Package Groups) Tests

Comps XML (Yum Package Groups) Tests

class rhui3_tests.test_comps.TestCompsXML[source]

class to test comps XML handling

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

log in to RHUI, ensure CDS & HAProxy nodes have been added

test_02_add_repos()[source]

create custom repos for testing

test_03_add_comps()[source]

import comps XML files to the repos

test_04_create_cli_config_rpms()[source]

create client configuration RPMs for the repos

test_05_install_conf_rpm()[source]

install the 1st client configuration RPM on the client

test_06_check_groups()[source]

compare client’s available groups with the 1st original comps file, check a test group

test_07_check_test_package()[source]

check if the client can see the 1st test package as available in group information

test_08_install_conf_rpm()[source]

replace the 1st client configuration RPM with the 2nd one on the client

test_09_check_groups()[source]

compare client’s available groups with the 2nd original comps file, check a test group

test_10_check_test_package()[source]

check if the client can see the 2nd test package as available in group information

test_11_check_langpacks()[source]

check available langpacks in the processed comps files

test_12_additional_group()[source]

import a comps file containing one more group and expect the group to be added

static test_13_big_comps()[source]

import comps for the (big) RHEL 7Server repo and check if all its groups get processed

static test_14_empty_comps()[source]

import a comps file containing no group and expect no problem and no repodata refresh

static test_15_gzip()[source]

try using a compressed comps XML file, should be handled well

static test_16_wrong_input_files()[source]

try using an invalid XML file and a file with an invalid extension

test_17_wrong_repo()[source]

try using an invalid repository ID

test_99_cleanup()[source]

clean up

Container Management Tests

Container Management Tests

class rhui3_tests.test_containers.TestClient[source]

class for container 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()[source]

log in to RHUI

static test_02_add_cds()[source]

add a CDS

static test_03_add_hap()[source]

add an HAProxy Load-balancer

test_04_add_containers()[source]

add containers

test_05_display_info()[source]

check detailed information on the RH container

test_06_sync_containers()[source]

sync the containers

static test_07_create_cli_rpm()[source]

create a client configuration RPM

test_08_install_cli_rpm()[source]

install the client configuration RPM

test_09_pull_image()[source]

pull the container image

test_10_check_images()[source]

check if the container images are now available

test_11_run_command()[source]

run a test command (uname) in the RH container

test_99_cleanup()[source]

remove the containers from the client and the RHUA, uninstall HAProxy and CDS

Entitlement Management Tests

Entitlement management tests

class rhui3_tests.test_entitlements.TestEntitlement[source]

class for entitlement 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_initial_run()[source]

log in to RHUI

static test_02_list_rh_entitlements()[source]

list Red Hat content certificate entitlements

static test_03_list_cus_entitlements()[source]

list custom content certificate entitlements, expect none

static test_04_upload_rh_certificate()[source]

upload a new or updated Red Hat content certificate

static test_05_list_rh_entitlements()[source]

list Red Hat content certificate entitlements

static test_06_add_custom_repo()[source]

add a custom repo to protect by a client entitlement certificate

static test_07_list_cust_entitlements()[source]

list custom content certificate entitlements, expect one

static test_08_remove_custom_repo()[source]

remove the custom repo

static test_09_list_cust_entitlements()[source]

list custom content certificate entitlements, expect none

static test_10_remove_certificates()[source]

clean up uploaded entitlement certificates

static test_11_upload_exp_cert()[source]

upload an expired certificate, expect a proper refusal

static test_12_upload_incompat_cert()[source]

upload an incompatible certificate, expect a proper refusal

static test_13_upload_semi_bad_cert()[source]

upload a certificate containing a mix of valid and invalid repos

static test_14_remove_semi_bad_cert()[source]

remove the certificate

static test_15_upload_nonexist_cert()[source]

try uploading a certificate file that does not exist, should be handled gracefully

static test_16_upload_empty_cert()[source]

upload a certificate that contains no entitlements

EUS Tests (for the CLI)

EUS Tests (for the CLI)

class rhui3_tests.test_eus_cmd.TestEUSCLI[source]

class to test EUS repos via the CLI

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

log in to RHUI

static test_02_add_cds()[source]

add a CDS

static test_03_add_hap()[source]

add an HAProxy Load-Balancer

static test_04_upload_certificate()[source]

upload an entitlement certificate

test_05_add_repo()[source]

add the tested repo

test_06_sync_repo()[source]

sync the repo

test_08_create_cli_config_rpm()[source]

create an entitlement certificate and a client configuration RPM (in one step)

static test_09_install_conf_rpm()[source]

install the client configuration RPM

test_10_set_eus_release()[source]

set the tested EUS release in Yum configuration

test_11_check_package_url()[source]

check if Yum is now working with the EUS URL

test_12_install_test_rpm()[source]

install the test package (from the test repo)

test_99_cleanup()[source]

clean up

Custom GPG Key Verification Tests

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

rhui3_tests.test_gpg.setup()[source]

announce the beginning of the test run

rhui3_tests.test_gpg.teardown()[source]

announce the end of the test run

rhui3_tests.test_gpg.test_01_initial_run()[source]

log in to RHUI

rhui3_tests.test_gpg.test_02_add_cds()[source]

add a CDS

rhui3_tests.test_gpg.test_03_add_hap()[source]

add an HAProxy Load-balancer

rhui3_tests.test_gpg.test_04_create_custom_repo()[source]

add a custom repo using a custom GPG key

rhui3_tests.test_gpg.test_05_upload_to_custom_repo()[source]

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

rhui3_tests.test_gpg.test_06_display_detailed_info()[source]

check detailed information on the repo

rhui3_tests.test_gpg.test_07_generate_ent_cert()[source]

generate an entitlement certificate

rhui3_tests.test_gpg.test_08_create_cli_rpm()[source]

create a client configuration RPM

rhui3_tests.test_gpg.test_09_install_conf_rpm()[source]

install the client configuration RPM

rhui3_tests.test_gpg.test_10_install_signed_pkg()[source]

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

rhui3_tests.test_gpg.test_11_check_gpg_sig()[source]

check the signature in the installed package

rhui3_tests.test_gpg.test_12_check_gpg_pubkey()[source]

check if the public GPG key was imported

rhui3_tests.test_gpg.test_13_install_unsigned_pkg()[source]

try installing the unsigned package, should not work

rhui3_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

rhui3_tests.test_gpg.test_99_cleanup()[source]

clean up

HAProxy Management Tests

HAProxy management tests

rhui3_tests.test_hap.setup()[source]

announce the beginning of the test run

rhui3_tests.test_hap.teardown()[source]

announce the end of the test run

rhui3_tests.test_hap.test_01_initial_run()[source]

log in to RHUI

rhui3_tests.test_hap.test_02_list_empty_hap()[source]

check if there are no HAProxy Load-balancers

rhui3_tests.test_hap.test_03_add_hap()[source]

add an HAProxy Load-balancer

rhui3_tests.test_hap.test_04_list_hap()[source]

check if the HAProxy Load-balancer was added

rhui3_tests.test_hap.test_05_readd_hap()[source]

add the HAProxy Load-balancer again (reapply the configuration)

rhui3_tests.test_hap.test_06_list_hap()[source]

check if the HAProxy Load-balancer is still tracked

rhui3_tests.test_hap.test_07_delete_nonexisting_hap()[source]

try deleting an untracked HAProxy Load-balancer, should be rejected (by rhui3_tests_lib)

rhui3_tests.test_hap.test_08_delete_hap()[source]

delete the HAProxy Load-balancer

rhui3_tests.test_hap.test_09_list_hap()[source]

list HAProxy Load-balancers again, expect none

rhui3_tests.test_hap.test_10_check_cleanup()[source]

check if the haproxy service was stopped

rhui3_tests.test_hap.test_11_add_hap_uppercase()[source]

add (and delete) an HAProxy Load-balancer with uppercase characters

rhui3_tests.test_hap.test_12_delete_unreachable()[source]

add a Load-balancer, make it unreachable, and see if it can still be deleted from the RHUA

rhui3_tests.test_hap.test_13_delete_select_0()[source]

add an LB and see if no issue occurs if it and “a zeroth” (ghost) LBs are selected for deletion

HAProxy Management Tests for the CLI

HAProxy management tests for the CLI

rhui3_tests.test_hap_cmd.setup()[source]

announce the beginning of the test run

rhui3_tests.test_hap_cmd.teardown()[source]

announce the end of the test run

rhui3_tests.test_hap_cmd.test_01_init()[source]

log in to RHUI

rhui3_tests.test_hap_cmd.test_02_list_hap()[source]

check if there are no HAProxy Load-balancers

rhui3_tests.test_hap_cmd.test_03_add_hap()[source]

add an HAProxy Load-balancer

rhui3_tests.test_hap_cmd.test_04_list_hap()[source]

check if the HAProxy Load-balancer has been added

rhui3_tests.test_hap_cmd.test_05_reinstall_hap()[source]

add the HAProxy Load-balancer again by reinstalling it

rhui3_tests.test_hap_cmd.test_06_list_hap()[source]

check if the HAProxy Load-balancer is still tracked, and only once

rhui3_tests.test_hap_cmd.test_07_readd_hap_noforce()[source]

check if rhui refuses to add the HAProxy Load-balancer again if no extra parameter is used

rhui3_tests.test_hap_cmd.test_08_list_hap()[source]

check if nothing extra has been added

rhui3_tests.test_hap_cmd.test_09_readd_hap()[source]

add the HAProxy Load-balancer again by using force

rhui3_tests.test_hap_cmd.test_10_list_hap()[source]

check if the HAProxy Load-balancer is still tracked, and only once

rhui3_tests.test_hap_cmd.test_11_delete_hap_noforce()[source]

check if rhui refuses to delete the node when it’s the only/last one and force isn’t used

rhui3_tests.test_hap_cmd.test_12_list_hap()[source]

check if the HAProxy Load-balancer really hasn’t been deleted

rhui3_tests.test_hap_cmd.test_13_delete_hap_force()[source]

delete the HAProxy Load-balancer forcibly

rhui3_tests.test_hap_cmd.test_14_list_hap()[source]

check if the HAProxy Load-balancer has been deleted

rhui3_tests.test_hap_cmd.test_15_add_bad_hap()[source]

try adding an incorrect HAProxy hostname, expect trouble and nothing added

rhui3_tests.test_hap_cmd.test_16_delete_bad_hap()[source]

try deleting a non-existing HAProxy hostname, expect trouble

rhui3_tests.test_hap_cmd.test_17_add_hap_changed_case()[source]

add and delete an HAProxy Load-balancer with uppercase characters, should work

rhui3_tests.test_hap_cmd.test_18_add_safe_unknown_key()[source]

try adding the Load-balancer when its SSH key is unknown, without using –unsafe; should fail

rhui3_tests.test_hap_cmd.test_19_add_safe_known_key()[source]

add and delete the Load-balancer when its SSH key is known, without using –unsafe; should work

rhui3_tests.test_hap_cmd.test_20_delete_unreachable()[source]

add a Load-balancer, make it unreachable, and see if it can still be deleted from the RHUA

rhui3_tests.test_hap_cmd.test_21_check_cleanup()[source]

check if the haproxy service was stopped

Repo Management Tests

Repository management tests

class rhui3_tests.test_repo_management.TestRepo[source]

class for repository manipulation 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_repo_setup()[source]

log in to RHUI, upload cert, check if no repo exists

static test_02_create_3_custom_repos()[source]

create 3 custom repos (protected, unprotected, no RH GPG check)

static test_03_check_custom_repo_list()[source]

check if the repolist contains the 3 custom repos

static test_04_repo_id_uniqueness()[source]

verify that rhui-manager refuses to create a custom repo whose name already exists

test_05_upload_local_rpms()[source]

upload rpms from a local directory to a custom repo

test_06_upload_remote_rpms()[source]

upload rpms from remote servers to custom repos

test_07_check_for_package()[source]

check package lists

test_08_display_custom_repos()[source]

check detailed information on the custom repos

test_09_add_rh_repo_by_repo()[source]

add a Red Hat repo by its name

test_10_display_rh_repo()[source]

check detailed information on the Red Hat repo

test_11_delete_one_repo()[source]

remove the Red Hat repo

test_12_add_rh_repo_by_product()[source]

add a Red Hat repo by the product that contains it, remove it

static test_13_add_all_rh_repos()[source]

add all Red Hat repos, remove them (takes a lot of time!)

test_14_add_containers()[source]

add containers

test_15_display_container()[source]

check detailed information on the RH container

static test_16_delete_containers()[source]

delete the containers

static test_17_missing_cert_handling()[source]

check if rhui-manager can handle the loss of the RH cert

static test_18_repo_select_0()[source]

check if no repo is chosen if 0 is entered when adding a repo

Various RHUI Related Repository Tests

Tests for RHUI 3 repos and EUS listings

rhui3_tests.test_rhui_3_repos.setup()[source]

announce the beginning of the test run

rhui3_tests.test_rhui_3_repos.teardown()[source]

announce the end of the test run

rhui3_tests.test_rhui_3_repos.test_01_install_wget()[source]

make sure wget is installed on the RHUA

rhui3_tests.test_rhui_3_repos.test_02_rhui_3_for_rhel_7_check()[source]

check if the RHUI 3 packages for RHEL 7 are available

rhui3_tests.test_rhui_3_repos.test_03_eus_6_repos_check()[source]

check if all supported RHEL 6 EUS versions are available

rhui3_tests.test_rhui_3_repos.test_04_eus_7_repos_check()[source]

check if all supported RHEL 7 EUS versions are available

Security Tests

Various Security Tests

rhui3_tests.test_security.setup()[source]

announce the beginning of the test run

rhui3_tests.test_security.teardown()[source]

announce the end of the test run

rhui3_tests.test_security.test_01_login_add_cds_hap()[source]

log in to RHUI, add CDS and HAProxy nodes

rhui3_tests.test_security.test_02_puppet()[source]

check protocols allowed by Puppet on the RHUA

rhui3_tests.test_security.test_03_https_rhua()[source]

check protocols allowed by Apache on the RHUA

rhui3_tests.test_security.test_04_https_cds()[source]

check protocols allowed by Apache on the CDS nodes

rhui3_tests.test_security.test_05_crane_cds()[source]

check protocols allowed by Crane on the CDS nodes

rhui3_tests.test_security.test_06_haproxy_stats()[source]

check haproxy stats

rhui3_tests.test_security.test_99_cleanup()[source]

delete CDS and HAProxy nodes

Sosreport Tests

Test case for sosreport usage in RHUI

rhui3_tests.test_sosreport.setup()[source]

announce the beginning of the test run

rhui3_tests.test_sosreport.teardown()[source]

announce the end of the test run

rhui3_tests.test_sosreport.test_00_rhui_init()[source]

add a CDS and run rhui-subscription-sync to ensure their log files exist

rhui3_tests.test_sosreport.test_01_rhua_check_sos_script()[source]

check if the RHUI sosreport script is available on the RHUA node

rhui3_tests.test_sosreport.test_02_rhua_sosreport_run()[source]

run sosreport on the RHUA node

rhui3_tests.test_sosreport.test_03_rhua_sosreport_check()[source]

check if the sosreport archive from the RHUA node contains the desired files

rhui3_tests.test_sosreport.test_04_cds_check_sos_script()[source]

check if the RHUI sosreport script is available on the CDS node

rhui3_tests.test_sosreport.test_05_cds_sosreport_run()[source]

run sosreport on the CDS node

rhui3_tests.test_sosreport.test_06_cds_sosreport_check()[source]

check if the sosreport archive from the CDS node contains the desired files

rhui3_tests.test_sosreport.test_99_cleanup()[source]

delete the archives and their checksum files, local caches; remove CDS

Subscription Management Tests

Test case for the RHUI SKU, the RHUI 3 repo, and subscription registration in RHUI

class rhui3_tests.test_subscription.TestSubscription[source]

class for tests for subscription registration in RHUI

static setup_class()[source]

announce the beginning of the test run

static teardown_class()[source]

announce the end of the test run

static test_00_initial_run()[source]

log in to RHUI

static test_01_register_system()[source]

register with RHSM

test_02_attach_rhui_sub()[source]

attach the RHUI subscription

test_03_attach_atomic_sub()[source]

attach the Atomic subscription

test_04_check_available_subs()[source]

check if the subscriptions available to RHUI are the known ones

test_05_reg_rhui_sub_in_rhui()[source]

register the RHUI subscription in RHUI

test_06_reg_atomic_sub_in_rhui()[source]

register the Atomic subscription in RHUI

test_07_check_registered_subs()[source]

check if the subscriptions are now tracked as registered

test_08_unregister_sub_in_rhui()[source]

unregister the subscriptions in RHUI

static test_09_check_registered_subs()[source]

check if the subscriptions are no longer tracked as registered

static test_10_unregister_system()[source]

unregister from RHSM

Repo syncing and scheduling Tests

Repo syncing and scheduling tests

class rhui3_tests.test_sync_management.TestSync[source]

class for repository synchronization tests

static setup_class()[source]

announce the beginning of the test run

static teardown_class()[source]

announce the end of the test run

test_01_setup()[source]

log in to rhui-manager, upload RH cert, add a repo to sync

test_02_sync_repo()[source]

sync a RH repo

test_03_check_sync_started()[source]

ensure that the sync started

test_04_wait_till_repo_synced()[source]

wait until the repo is synced

test_99_cleanup()[source]

remove the RH repo and cert

Update Info Tests

Update Info Tests

class rhui3_tests.test_updateinfo.TestClient[source]

class for client 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_repo_setup()[source]

log in to RHUI

static test_02_add_cds()[source]

add a CDS

static test_03_add_hap()[source]

add an HAProxy Load-balancer

test_04_add_repo()[source]

add a custom repo

test_05_upload_packages()[source]

upload packages to the custom repo

test_06_import_updateinfo()[source]

import update info

test_07_generate_ent_cert()[source]

generate an entitlement certificate

test_08_create_cli_rpm()[source]

create a client configuration RPM from the entitlement certificate

test_09_install_conf_rpm()[source]

install the client configuration RPM

test_10_install_test_rpm()[source]

install an old version of an RPM from the repo

test_11_check_updateinfo()[source]

check if the expected update info is found

test_12_compare_n_of_updates()[source]

check if the all the updates from the original updateinfo file are available from RHUI

test_13_uncompressed_xml()[source]

also check if an uncompressed updateinfo.xml file can be used

test_99_cleanup()[source]

remove the repo, uninstall hap, cds, cli rpm artefacts; remove rpms from cli

User Management Tests

User management tests

rhui3_tests.test_user_management.setup()[source]

announce the beginning of the test run

rhui3_tests.test_user_management.teardown()[source]

announce the end of the test run

rhui3_tests.test_user_management.test_01_initial_run()[source]

log in the RHUI (try the “usual” or the default admin password)

rhui3_tests.test_user_management.test_02_change_password()[source]

change the password (will log the user out automatically)

rhui3_tests.test_user_management.test_03_login_with_new_pass()[source]

log in with the new password

rhui3_tests.test_user_management.test_04_reset_password()[source]

change the password back to the “usual” one

rhui3_tests.test_user_management.test_05_login_with_wrong_pass()[source]

try logging in with the wrong password, should fail gracefully

Miscellaneous Tests That Do Not Fit Elsewhere

Miscellaneous Tests That Do Not Fit Elsewhere

rhui3_tests.test_zzz_misc.setup()[source]

announce the beginning of the test run

rhui3_tests.test_zzz_misc.teardown()[source]

announce the end of the test run

rhui3_tests.test_zzz_misc.test_01_sha1()[source]

check if SHA-1 is not used in internal certificates, and if SHA-256 is used instead

rhui3_tests.test_zzz_misc.test_02_repo_remove_missing()[source]

check if Pulp repos are globally configured to remove packages missing upstream

rhui3_tests.test_zzz_misc.test_03_restart_services_script()[source]

try the rhui-services-restart script

rhui3_tests.test_zzz_misc.test_04_fabric_crypto_req()[source]

check if the fabric package requires python-crypto

rhui3_tests.test_zzz_misc.test_05_celery_selinux()[source]

verify that no SELinux denial related to celery was logged

rhui3_tests.test_zzz_misc.test_06_pulp_server_rpm_v()[source]

verify that /etc/pki/pulp/rsa_pub.key is installed correctly

rhui3_tests.test_zzz_misc.test_07_check_migrate_py()[source]

check if the migration script in the RHUI ISO is up to date

rhui3_tests.test_zzz_misc.test_08_qpid_linearstore()[source]

check if the qpid-cpp-server-linearstore package is available

Indices and Tables