scheduler.test.scheduling package¶
Submodules¶
scheduler.test.scheduling.test_manager module¶
-
class
scheduler.test.scheduling.test_manager.
TestSchedulingManager
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
-
fixtures
= [u'basic_job_errors.json']¶
-
setUp
()¶
-
test_all_available_resources
()¶ Tests successfully calculating the available resources in a cluster
-
test_canceled_queue_model
()¶ Tests successfully calling perform_scheduling() when a queue model has been canceled
-
test_get_queued_resources
()¶ Tests successfully getting queued resource information
-
test_get_queued_resources_with_no_resources
()¶ Tests successfully getting queued resource information when all cluster resources is empty.
-
test_increased_resources
()¶ Tests calling perform_scheduling() with more resources
-
test_job_type_limit
()¶ Tests calling perform_scheduling() with a job type limit
-
test_max_resources
()¶ Tests successfully calculating the max resources in a cluster
-
test_missing_job_types
()¶ Tests calling perform_scheduling() when a queued job type has not been synced to the scheduler
-
test_missing_workspace
()¶ Tests calling perform_scheduling() when a queued job’s workspace has not been synced to the scheduler
-
test_node_with_new_agent_id
()¶ Tests successfully calling perform_scheduling() when a node get a new agent ID
-
test_paused_job_type
()¶ Tests calling perform_scheduling() when a job type is paused
-
test_paused_scheduler
()¶ Tests calling perform_scheduling() with a paused scheduler
-
test_schedule_system_tasks
()¶ Tests successfully calling perform_scheduling() when scheduling system tasks
-
test_successful_schedule
()¶ Tests successfully calling perform_scheduling()
-
test_update_all_cluster_resources
()¶ Tests successfully updating the all cluster resources database in a cluster
-
test_update_all_cluster_resources_no_resources
()¶ Tests updating the all cluster resources database when none are defined.
-
scheduler.test.scheduling.test_node module¶
-
class
scheduler.test.scheduling.test_node.
TestSchedulingNode
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
-
setUp
()¶
-
test_accept_job_exe_next_task
()¶ Tests successfully calling accept_job_exe_next_task()
-
test_accept_job_exe_next_task_canceled
()¶ Tests calling accept_job_exe_next_task() when job exe gets canceled (no next task)
-
test_accept_job_exe_next_task_insufficient_resources
()¶ Tests calling accept_job_exe_next_task() when there are not enough resources
-
test_accept_job_exe_next_task_no_jobs
()¶ Tests calling accept_job_exe_next_task() when job exe tasks are not allowed
-
test_accept_new_job_exe
()¶ Tests successfully calling accept_new_job_exe()
-
test_accept_new_job_exe_gpu_full_node
()¶ Tests successfully calling accept_new_job_exe() when job requires all GPUs per node
-
test_accept_new_job_exe_gpu_partial_node
()¶ Tests successfully calling accept_new_job_exe() when job requires less GPUs than available
-
test_accept_new_job_exe_gpu_partial_node_other_task
()¶ Tests successfully calling accept_new_job_exe() when job requires less GPUs than available
-
test_accept_new_job_exe_insufficient_resources
()¶ Tests calling accept_new_job_exe() when there are not enough resources
-
test_accept_new_job_exe_no_jobs
()¶ Tests calling accept_new_job_exe() when new job exes are not allowed
-
test_accept_node_tasks
()¶ Tests successfully calling accept_node_tasks()
-
test_accept_node_tasks_insufficient_resources
()¶ Tests calling accept_node_tasks() when there are not enough resources
-
test_add_allocated_offers
()¶ Tests calling add_allocated_offers() when there are enough resources for everything
-
test_add_allocated_offers_remove_all_tasks
()¶ Tests calling add_allocated_offers() when there are not enough resources for the job exes or node tasks
-
test_add_allocated_offers_remove_job_exes
()¶ Tests calling add_allocated_offers() when there are not enough resources for the job exes
-
test_reset_new_job_exes
()¶ Tests calling reset_new_job_exes() successfully
-
test_score_job_exe_for_reservation
()¶ Tests calling score_job_exe_for_reservation() successfully
-
test_score_job_exe_for_reservation_insufficient_resources
()¶ Tests calling score_job_exe_for_reservation() when there are not enough resources to reserve for the job
-
test_score_job_exe_for_scheduling
()¶ Tests calling score_job_exe_for_scheduling() successfully
-
test_score_job_exe_for_scheduling_insufficient_resources
()¶ Tests calling score_job_exe_for_scheduling() when there are not enough resources to schedule the job
-
test_start_job_exe_tasks
()¶ Tests calling start_job_exe_tasks() successfully
-