The bareon.tests.test_utils Module¶
-
class
bareon.tests.test_utils.ExecuteTestCase(methodName='runTest')¶ Bases:
unittest2.case.TestCaseThis class is partly based on the same class in openstack/ironic.
-
setUp()¶ Hook method for setting up the test fixture before exercising it.
-
test_B2MiB()¶
-
test_calculate_md5_ok()¶
-
test_check_exit_code_boolean()¶
-
test_execute_failed(**keywargs)¶
-
test_execute_ok_on_third_attempts(**keywargs)¶
-
test_get_data_driver(**keywargs)¶
-
test_get_deploy_driver(**keywargs)¶
-
test_guess_filename(**keywargs)¶
-
test_guess_filename_not_exact_match(**keywargs)¶
-
test_guess_filename_not_exact_match_forward_sort(**keywargs)¶
-
test_guess_filename_not_found(**keywargs)¶
-
test_init_http_request_max_retries_exceeded(**keywargs)¶
-
test_init_http_request_non_critical_errors(**keywargs)¶
-
test_init_http_request_ok(**keywargs)¶
-
test_init_http_request_wrong_http_status(**keywargs)¶
-
test_makedirs_if_not_exists(**keywargs)¶
-
test_makedirs_if_not_exists_already_exists(**keywargs)¶
-
test_makedirs_if_not_exists_mode_given(**keywargs)¶
-
test_parse_unit()¶
-
test_render_and_save_fail(**keywargs)¶
-
test_render_and_save_ok(**keywargs)¶
-
test_udevadm_settle(**keywargs)¶
-
-
class
bareon.tests.test_utils.GetIPTestCase(methodName='runTest')¶ Bases:
unittest2.case.TestCase-
setUp()¶ Hook method for setting up the test fixture before exercising it.
-
test_get_interface_ip(**keywargs)¶
-
test_get_interface_no_ip(**keywargs)¶
-
test_get_interface_no_ip_last(**keywargs)¶
-
test_get_interface_no_mac(**keywargs)¶
-
-
class
bareon.tests.test_utils.ParseKernelCmdline(methodName='runTest')¶ Bases:
unittest2.case.TestCase-
test_parse_kernel_cmdline()¶
-
-
class
bareon.tests.test_utils.TestUdevRulesBlacklisting(methodName='runTest')¶ Bases:
unittest2.case.TestCase-
test_blacklist_udev_rules_create_empty_rule(**keywargs)¶
-
test_blacklist_udev_rules_execute(**keywargs)¶
-
test_blacklist_udev_rules_not_a_rule(**keywargs)¶
-
test_blacklist_udev_rules_rule_doesnot_exist(**keywargs)¶
-
test_blacklist_udev_rules_rule_exists(**keywargs)¶
-
test_unblacklist_udev_rules_executes(**keywargs)¶
-
test_unblacklist_udev_rules_not_a_rule(**keywargs)¶
-
test_unblacklist_udev_rules_remove(**keywargs)¶
-
test_unblacklist_udev_rules_rename(**keywargs)¶
-