HAProxy Management Tests

HAProxy management tests

rhui4_tests.test_hap.setup()[source]

announce the beginning of the test run

rhui4_tests.test_hap.teardown()[source]

announce the end of the test run

rhui4_tests.test_hap.test_01_initial_run()[source]

log in to RHUI

rhui4_tests.test_hap.test_02_list_empty_hap()[source]

check if there are no HAProxy Load-balancers

rhui4_tests.test_hap.test_03_add_hap()[source]

add an HAProxy Load-balancer

rhui4_tests.test_hap.test_04_list_hap()[source]

check if the HAProxy Load-balancer was added

rhui4_tests.test_hap.test_05_readd_hap()[source]

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

rhui4_tests.test_hap.test_06_list_hap()[source]

check if the HAProxy Load-balancer is still tracked

rhui4_tests.test_hap.test_07_delete_nonexisting_hap()[source]

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

rhui4_tests.test_hap.test_08_delete_hap()[source]

delete the HAProxy Load-balancer

rhui4_tests.test_hap.test_09_list_hap()[source]

list HAProxy Load-balancers again, expect none

rhui4_tests.test_hap.test_10_check_cleanup()[source]

check if the haproxy service was stopped

rhui4_tests.test_hap.test_11_add_hap_uppercase()[source]

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

rhui4_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

rhui4_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

rhui4_tests.test_hap.test_14_file_paths()[source]

check if absolute and valid paths are required

rhui4_tests.test_hap.test_15_custom_haproxy_config()[source]

check the ability to install HAProxy with a custom configuration file