job.test.tasks package¶
Submodules¶
job.test.tasks.test_base_task module¶
-
class
job.test.tasks.test_base_task.
ImplementedTask
(task_id, task_name, agent_id)¶ Bases:
job.tasks.base_task.Task
-
get_resources
()¶ Returns the resources that are required/have been scheduled for this task
Returns: The scheduled resources for this task Return type: node.resources.node_resources.NodeResources
-
-
class
job.test.tasks.test_base_task.
TestTask
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
Tests the base Task class
-
setUp
()¶
-
test_check_timeout
()¶ Tests calling Task.check_timeout()
-
test_need_reconciliation
()¶ Tests calling Task.need_reconciliation()
-
test_parsing_container_name
()¶ Tests that a task successfully parses container name from a RUNNING task update
-
job.test.tasks.test_manager module¶
-
class
job.test.tasks.test_manager.
ImplementedNodeTask
(task_id, task_name, agent_id)¶ Bases:
job.tasks.node_task.NodeTask
-
get_resources
()¶ Returns the resources that are required/have been scheduled for this task
Returns: The scheduled resources for this task Return type: node.resources.node_resources.NodeResources
-
-
class
job.test.tasks.test_manager.
ImplementedSystemTask
(task_id, task_name, agent_id)¶ Bases:
scheduler.tasks.system_task.SystemTask
-
get_resources
()¶ Returns the resources that are required/have been scheduled for this task
Returns: The scheduled resources for this task Return type: node.resources.node_resources.NodeResources
-
-
class
job.test.tasks.test_manager.
ImplementedTask
(task_id, task_name, agent_id)¶ Bases:
job.tasks.base_task.Task
-
get_resources
()¶ Returns the resources that are required/have been scheduled for this task
Returns: The scheduled resources for this task Return type: node.resources.node_resources.NodeResources
-
-
class
job.test.tasks.test_manager.
TestTaskManager
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
Tests the TaskManager class
-
setUp
()¶
-
test_generate_status_json
()¶ Tests calling TaskManager.generate_status_json()
-
test_handle_task_update
()¶ Tests calling TaskManager.handle_task_update()
-
test_launch_tasks
()¶ Tests calling TaskManager.launch_tasks()
-