Fake RPC implementation which calls proxy methods directly with no
queues. Casts will block, but this is very useful for tests.
-
class heat.openstack.common.rpc.impl_fake.Connection[source]
Bases: object
Connection object.
-
close()[source]
-
consume_in_thread()[source]
-
create_consumer(topic, proxy, fanout=False)[source]
-
class heat.openstack.common.rpc.impl_fake.Consumer(topic, proxy)[source]
Bases: object
-
call(context, version, method, args, timeout)[source]
-
class heat.openstack.common.rpc.impl_fake.RpcContext(**kwargs)[source]
Bases: heat.openstack.common.rpc.common.CommonRpcContext
-
deepcopy()[source]
-
reply(reply=None, failure=None, ending=False)[source]
-
heat.openstack.common.rpc.impl_fake.call(conf, context, topic, msg, timeout=None)[source]
Sends a message on a topic and wait for a response.
-
heat.openstack.common.rpc.impl_fake.cast(conf, context, topic, msg)[source]
-
heat.openstack.common.rpc.impl_fake.check_serialize(msg)[source]
Make sure a message intended for rpc can be serialized.
-
heat.openstack.common.rpc.impl_fake.cleanup()[source]
-
heat.openstack.common.rpc.impl_fake.create_connection(conf, new=True)[source]
Create a connection
-
heat.openstack.common.rpc.impl_fake.fanout_cast(conf, context, topic, msg)[source]
Cast to all consumers of a topic
-
heat.openstack.common.rpc.impl_fake.multicall(conf, context, topic, msg, timeout=None)[source]
Make a call that returns multiple times.
-
heat.openstack.common.rpc.impl_fake.notify(conf, context, topic, msg, envelope)[source]