validations_libs.tests.test_validation_log module

class validations_libs.tests.test_validation_log.TestValidationLog(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

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

test_get_duration(mock_open, mock_json)[source]
test_get_duration_bad_data(mock_open, mock_json)[source]
test_get_host_group(mock_open, mock_json)[source]
test_get_hosts_status(mock_open, mock_json)[source]
test_get_hosts_status_failed(mock_open, mock_json)[source]
test_get_hosts_status_unreachable(mock_open, mock_json)[source]
test_get_log_path(mock_open, mock_yaml, mock_glob)[source]
test_get_logfile_content(mock_open, mock_json)[source]
test_get_logfile_datetime(mock_open, mock_json, mock_glob)[source]
test_get_logfile_infos(mock_open, mock_json, mock_glob)[source]
test_get_plays(mock_open, mock_json)[source]
test_get_start_time(mock_open, mock_json)[source]
test_get_start_time_bad_data(mock_open, mock_json)[source]
test_get_status(mock_open, mock_json)[source]
test_get_status_failed(mock_open, mock_json)[source]
test_get_status_unreachable(mock_open, mock_json)[source]
test_get_tasks_data(mock_open, mock_json)[source]
test_get_unreachable_hosts(mock_open, mock_json)[source]
test_get_unreachable_hosts_bad_data(mock_open, mock_json)[source]
test_get_uuid(mock_open, mock_json)[source]
test_get_validation_id(mock_open, mock_json)[source]
test_is_valid_format(mock_open, mock_json)[source]
test_log_bad_json(mock_open, mock_json)[source]
test_log_not_abs_path()[source]
test_log_not_found(mock_open)[source]
test_validation_log_file(mock_open, mock_json)[source]
test_validation_underscore_validation_id(mock_open, mock_json)[source]
test_validation_uuid_wo_validation_id(mock_open, mock_json)[source]
test_validation_validation_id_wo_uuid(mock_open, mock_json)[source]
test_validation_wrong_log_file(mock_open, mock_json)[source]