CDS Management Tests

CDS management tests

rhui4_tests.test_cds.setup()[source]

announce the beginning of the test run

rhui4_tests.test_cds.teardown()[source]

announce the end of the test run

rhui4_tests.test_cds.test_01_initial_run()[source]

log in to RHUI

rhui4_tests.test_cds.test_02_list_empty_cds()[source]

check if there are no CDSs

rhui4_tests.test_cds.test_03_add_cds()[source]

add all known CDSs

rhui4_tests.test_cds.test_04_list_cds()[source]

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

rhui4_tests.test_cds.test_05_readd_cds()[source]

add one of the CDSs again (reapply the configuration)

rhui4_tests.test_cds.test_06_list_cds()[source]

check if the CDSs are still tracked

rhui4_tests.test_cds.test_07_delete_nonexisting_cds()[source]

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

rhui4_tests.test_cds.test_08_delete_cds()[source]

delete all CDSs

rhui4_tests.test_cds.test_09_list_cds()[source]

list CDSs, expect none

rhui4_tests.test_cds.test_10_check_cleanup()[source]

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

rhui4_tests.test_cds.test_11_add_cds_uppercase()[source]

add (and delete) a CDS with uppercase characters

rhui4_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

rhui4_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

rhui4_tests.test_cds.test_14_autoheal()[source]

terminate gunicorn processes and expect them to be respawned automatically

rhui4_tests.test_cds.test_15_check_ansible_warnings()[source]

check whether instance management did not trigger any Ansible warnings