HAProxy Management Tests for the CLI

HAProxy management tests for the CLI

rhui4_tests.test_hap_cmd.setup()[source]

announce the beginning of the test run

rhui4_tests.test_hap_cmd.teardown()[source]

announce the end of the test run

rhui4_tests.test_hap_cmd.test_01_init()[source]

log in to RHUI

rhui4_tests.test_hap_cmd.test_02_list_hap()[source]

check if there are no HAProxy Load-balancers

rhui4_tests.test_hap_cmd.test_03_add_safe_unknown_key()[source]

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

rhui4_tests.test_hap_cmd.test_04_add_safe_known_key()[source]

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

rhui4_tests.test_hap_cmd.test_05_add_hap()[source]

add an HAProxy Load-balancer when its SSH key is unknown, with using –unsafe

rhui4_tests.test_hap_cmd.test_06_reinstall_hap()[source]

add the HAProxy Load-balancer again by reinstalling it

rhui4_tests.test_hap_cmd.test_07_reinstall_all()[source]

check the ability to reinstall all the nodes using a generic command

rhui4_tests.test_hap_cmd.test_08_readd_hap_noforce()[source]

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

rhui4_tests.test_hap_cmd.test_09_list_hap()[source]

check if nothing extra has been added

rhui4_tests.test_hap_cmd.test_10_readd_hap()[source]

add the HAProxy Load-balancer again by using force

rhui4_tests.test_hap_cmd.test_11_list_hap()[source]

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

rhui4_tests.test_hap_cmd.test_12_delete_hap_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_hap_cmd.test_13_list_hap()[source]

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

rhui4_tests.test_hap_cmd.test_14_delete_hap_force()[source]

delete the HAProxy Load-balancer forcibly

rhui4_tests.test_hap_cmd.test_15_list_hap()[source]

check if the HAProxy Load-balancer has been deleted

rhui4_tests.test_hap_cmd.test_16_add_bad_hap()[source]

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

rhui4_tests.test_hap_cmd.test_17_delete_bad_hap()[source]

try deleting a non-existing HAProxy hostname, expect trouble

rhui4_tests.test_hap_cmd.test_18_add_hap_changed_case()[source]

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

rhui4_tests.test_hap_cmd.test_19_delete_unreachable()[source]

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

rhui4_tests.test_hap_cmd.test_20_custom_haproxy_config()[source]

check the ability to install HAProxy with a custom configuration file

rhui4_tests.test_hap_cmd.test_21_check_cleanup()[source]

check if the haproxy service was stopped