job.test.execution package

Submodules

job.test.execution.test_job_exe module

class job.test.execution.test_job_exe.TestRunningJobExecution(methodName='runTest')

Bases: django.test.testcases.TransactionTestCase

Tests the RunningJobExecution class

fixtures = [u'basic_errors.json', u'basic_job_errors.json']
setUp()
test_canceled_job_execution()

Tests running through a job execution that gets canceled

test_docker_pull_error()

Tests running through a job execution where the Docker image pull fails

test_docker_terminated_error()

Tests running through a job execution where a Docker container terminates

test_failed_normal_job_execution()

Tests running through a normal job execution that fails with an unknown error

test_general_algorithm_error()

Tests running through a job execution where the job-task has a general algorithm error (non-zero exit code)

test_job_task_launch_error()

Tests running through a job execution where a Docker-based job-task fails to launch

test_lost_job_execution()

Tests running through a job execution that gets lost

test_lost_task()

Tests running through a job execution that has a task that gets lost

test_post_task_launch_error()

Tests running through a job execution where a post-task fails to launch

test_pre_task_launch_error()

Tests running through a job execution where a pre-task fails to launch

test_successful_normal_job_execution()

Tests running through a normal job execution successfully

test_timed_out_job_task()

Tests running through a job execution where the job task times out

test_timed_out_launch()

Tests running through a job execution where a task launch times out

test_timed_out_post_task()

Tests running through a job execution where the post task times out

test_timed_out_pre_task()

Tests running through a job execution where the pre task times out

test_timed_out_pull_task()

Tests running through a job execution where the pull task times out

test_timed_out_system_job_task()

Tests running through a job execution where a system job task times out

job.test.execution.test_manager module

class job.test.execution.test_manager.TestJobExecutionManager(methodName='runTest')

Bases: django.test.testcases.TransactionTestCase

Tests the JobExecutionManager class

fixtures = [u'basic_errors.json', u'basic_job_errors.json']
setUp()
test_check_for_starvation()

Tests calling check_for_starvation() successfully

test_generate_status_json()

Tests calling generate_status_json() successfully

test_get_messages_for_canceled_job_exes()

Tests calling get_messages() successfully when canceled job_exes have been added

test_handle_task_timeout()

Tests calling handle_task_timeout() successfully

test_handle_task_update()

Tests calling handle_task_update() successfully

test_init_with_database()

Tests calling init_with_database() successfully

test_lost_node()

Tests calling lost_node() successfully

test_schedule_job_exes()

Tests calling schedule_job_exes() successfully

test_sync_with_database()

Tests calling sync_with_database() successfully

job.test.execution.test_metrics module

class job.test.execution.test_metrics.TestTotalJobExeMetrics(methodName='runTest')

Bases: django.test.testcases.TestCase

Tests the TotalJobExeMetrics class

setUp()
test_init_with_database()

Tests calling init_with_database() successfully to load in job executions from the database

test_running_executions()

Tests the metrics with running executions that complete

Module contents