CDS Management Tests for the CLI

CDS management tests for the CLI

rhui4_tests.test_cds_cmd.setup()[source]

announce the beginning of the test run

rhui4_tests.test_cds_cmd.teardown()[source]

announce the end of the test run

rhui4_tests.test_cds_cmd.test_01_init()[source]

log in to RHUI

rhui4_tests.test_cds_cmd.test_02_list_cds()[source]

check if there are no CDSs

rhui4_tests.test_cds_cmd.test_03_add_safe_unknown_key()[source]

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

rhui4_tests.test_cds_cmd.test_04_add_safe_known_key()[source]

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

rhui4_tests.test_cds_cmd.test_05_add_cds()[source]

add all CDSs, with unknown SSH keys, with –unsafe

rhui4_tests.test_cds_cmd.test_06_reinstall_cds()[source]

add one of the CDSs again by reinstalling it

rhui4_tests.test_cds_cmd.test_07_reinstall_all()[source]

check the ability to reinstall all CDSes using a generic command

rhui4_tests.test_cds_cmd.test_08_readd_cds_noforce()[source]

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

rhui4_tests.test_cds_cmd.test_09_list_cds()[source]

check if nothing extra has been added

rhui4_tests.test_cds_cmd.test_10_readd_cds()[source]

add one of the CDSs again by using force

rhui4_tests.test_cds_cmd.test_11_list_cds()[source]

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

rhui4_tests.test_cds_cmd.test_12_delete_cds_noforce()[source]

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

rhui4_tests.test_cds_cmd.test_13_list_cds()[source]

check if the last CDS really hasn’t been deleted

rhui4_tests.test_cds_cmd.test_14_delete_cds_force()[source]

delete the last CDS forcibly

rhui4_tests.test_cds_cmd.test_15_list_cds()[source]

check if the last CDS has been deleted

rhui4_tests.test_cds_cmd.test_16_add_bad_cds()[source]

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

rhui4_tests.test_cds_cmd.test_17_delete_bad_cds()[source]

try deleting a non-existing CDS hostname, expect trouble

rhui4_tests.test_cds_cmd.test_18_add_cds_changed_case()[source]

add and delete a CDS with uppercase characters, should work

rhui4_tests.test_cds_cmd.test_19_delete_unreachable()[source]

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

rhui4_tests.test_cds_cmd.test_20_check_cleanup()[source]

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