scheduler.test package¶
Subpackages¶
Submodules¶
scheduler.test.test_initialize module¶
scheduler.test.test_scheduler module¶
-
class
scheduler.test.test_scheduler.
TestScheduler
(methodName='runTest')¶ Bases:
django.test.testcases.TransactionTestCase
Tests core functionality of the scheduler.
-
setUp
()¶
-
testRegistration
(*args, **keywargs)¶
-
test_offer_match_against_matched_and_unmatched
(*args, **keywargs)¶ Validate resource reservations that don’t match with ACCEPTED_RESOURCE_ROLE are ignored
-
test_reregistration_triggers_reconciliation
(*args, **keywargs)¶
-
scheduler.test.test_views module¶
-
class
scheduler.test.test_views.
TestSchedulerViewV6
(methodName='runTest')¶ Bases:
rest_framework.test.APITestCase
-
api
= u'v6'¶
-
setUp
()¶
-
test_get_scheduler_not_found
()¶ Test calling the Get Scheduler method when the database entry is missing.
-
test_get_scheduler_success
()¶ Test successfully calling the Get Scheduler method.
-
test_invalid_version
()¶ Tests calling the scheduler view with an invalid REST API version
-
test_update_scheduler_extra_fields
()¶ Test calling the Update Scheduler method with extra fields.
-
test_update_scheduler_invalid_fields
()¶ Test calling the Update Scheduler method with invalid fields.
-
test_update_scheduler_no_fields
()¶ Test calling the Update Scheduler method with no fields.
-
test_update_scheduler_queue_order
()¶ Test calling the Update Scheduler method with the queue_order field
-
test_update_scheduler_queue_order_bad
()¶ Test calling the Update Scheduler method with the queue_order field with a bad value
-
test_update_scheduler_success
()¶ Test successfully calling the Update Scheduler method.
-
-
class
scheduler.test.test_views.
TestStatusView
(methodName='runTest')¶ Bases:
rest_framework.test.APITestCase
-
api
= u'v6'¶
-
setUp
()¶
-
test_status_empty_dict
()¶ Test getting scheduler status with empty initialization
-
test_status_old
(*args, **keywargs)¶ Test getting scheduler status with old data
-
test_status_successful
(*args, **keywargs)¶ Test getting scheduler status successfully
-