freezer.tests.unit.scheduler.test_coordination module

class freezer.tests.unit.scheduler.test_coordination.TestCoordinationFunctionalFileDriver(methodName='runTest')

Bases: TestCase

Functional tests against the local tooz file driver.

The file driver keeps membership and locks in a shared directory, so several coordinators in one process behave like real cluster members — membership, ring ownership and locks are exercised for real, without external services.

setUp()

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

test_job_lock_is_exclusive_across_members()
test_rebalance_on_leave()
test_refresh_recovers_membership()
test_ring_agreement_exactly_one_owner()
test_single_member_owns_everything()
class freezer.tests.unit.scheduler.test_coordination.TestSchedulerCoordinator(methodName='runTest')

Bases: TestCase

setUp()

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

test_group_id_is_client_id()
test_is_owner_false_when_other_owns()
test_is_owner_false_without_ring()
test_job_lock_acquired_and_released()
test_job_lock_failsafe_on_backend_error()
test_job_lock_not_acquired()
test_job_lock_releases_and_propagates_on_body_error()
test_member_id_is_unique_per_process()
test_refresh_builds_ring_and_owns_some_jobs()
test_refresh_failsafe_on_backend_error()
test_refresh_rejoins_when_evicted()
test_start_is_idempotent()