The ceilometer.tests.unit.test_coordination Module

class ceilometer.tests.unit.test_coordination.MockAsyncError(error)[source]

Bases: tooz.coordination.CoordAsyncResult

static done()[source]
get(timeout=0)[source]
class ceilometer.tests.unit.test_coordination.MockAsyncResult(result)[source]

Bases: tooz.coordination.CoordAsyncResult

static done()[source]
get(timeout=0)[source]
class ceilometer.tests.unit.test_coordination.MockLoggingHandler(*args, **kwargs)[source]

Bases: logging.Handler

Mock logging handler to check for expected logs.

emit(record)[source]
reset()[source]
class ceilometer.tests.unit.test_coordination.MockToozCoordExceptionOnJoinRaiser(member_id, shared_storage, retry_count=None)[source]

Bases: ceilometer.tests.unit.test_coordination.MockToozCoordinator

join_group(group_id, capabilities='')[source]
class ceilometer.tests.unit.test_coordination.MockToozCoordExceptionRaiser(member_id, shared_storage)[source]

Bases: ceilometer.tests.unit.test_coordination.MockToozCoordinator

get_members(group_id)[source]
heartbeat()[source]
join_group(group_id, capabilities='')[source]
start()[source]
class ceilometer.tests.unit.test_coordination.MockToozCoordinator(member_id, shared_storage)[source]

Bases: object

create_group(group_id)[source]
get_members(group_id)[source]
heartbeat()[source]
join_group(group_id, capabilities='')[source]
leave_group(group_id)[source]
start()[source]
stop()[source]
class ceilometer.tests.unit.test_coordination.TestPartitioning(*args, **kwds)[source]

Bases: ceilometer.tests.base.BaseTestCase

setUp()[source]
test_coordination_backend_connection_fail_on_join()[source]
test_coordination_backend_offline()[source]
test_group_id_none()[source]
test_multiple_groups()[source]
test_partitioning()[source]
test_partitioning_with_unicode()[source]
test_reconnect()[source]
test_single_group()[source]
test_stop()[source]

Project Source

This Page