oslo_messaging.conffixture.ConfFixture(conf)¶Tweak configuration options for unit testing.
oslo.messaging registers a number of configuration options, but rather than directly referencing those options, users of the API should use this interface for querying and overriding certain configuration options.
An example usage:
self.messaging_conf = self.useFixture(messaging.ConfFixture(cfg.CONF))
self.messaging_conf.transport_driver = 'fake'
| Parameters: | conf (oslo.config.cfg.ConfigOpts) – a ConfigOpts instance |
|---|
response_timeout¶Default number of seconds to wait for a response from a call.
transport_driver¶The transport driver - for example ‘rabbit’, ‘amqp’ or ‘fake’.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.