validations_libs.tests.test_validation_actions module

class validations_libs.tests.test_validation_actions.TestValidationActions(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_get_status(mock_open, mock_load, mock_get_log)[source]
test_get_status_no_param()[source]
test_group_information(mock_open, mock_yaml, mock_data)[source]
test_show_history_all(mock_open, mock_load, mock_get_log)[source]
test_show_history_list(mock_open, mock_load, mock_get_log)[source]
test_show_history_most_recent(mock_open, mock_load, mock_get_log, mock_stat)[source]
test_show_history_str(mock_open, mock_load, mock_get_log)[source]
test_show_validations_parameters(mock_open, mock_load, mock_get_param, mock_get_play)[source]
test_show_validations_parameters_non_supported_format(mock_open)[source]
test_show_validations_parameters_wrong_categories_type(mock_open)[source]
test_show_validations_parameters_wrong_groups_type(mock_open)[source]
test_show_validations_parameters_wrong_products_type(mock_open)[source]
test_show_validations_parameters_wrong_validations_type(mock_open)[source]
test_spinner_exception_failure_condition(mock_validation_dir, mock_exists, mock_access, mock_makedirs, mock_playbook_check)[source]
test_spinner_forced_run(mock_stdin_isatty, mock_validation_dir, mock_exists, mock_access, mock_makedirs, mock_playbook_check)[source]
test_validation_list(mock_validation_dir)[source]
test_validation_run_failed(mock_ansible_run, mock_validation_dir, mock_results, mock_exists, mock_access, mock_makedirs)[source]
test_validation_run_no_validation(mock_get_val)[source]
test_validation_run_not_all_found(mock_validation_play)[source]
test_validation_run_not_enough_params(mock_validation_play)[source]
test_validation_run_success(mock_ansible_run, mock_validation_dir, mock_results, mock_exists, mock_access, mock_makedirs)[source]
test_validation_run_wrong_validation_name(mock_validation_play)[source]
test_validation_show(mock_exists, mock_open, mock_parse_validation, mock_data, mock_log)[source]
test_validation_show_not_found(mock_exists)[source]
test_validation_skip_on_specific_host(mock_ansible_run, mock_validation_play, mock_exists, mock_access, mock_makedirs, mock_uuid, mock_time)[source]
test_validation_skip_validation(mock_validation_play, mock_exists, mock_access)[source]
test_validation_skip_with_limit_host(mock_ansible_run, mock_validation_play, mock_exists, mock_access, mock_makedirs, mock_uuid, mock_time)[source]