Add a unit testing configuration fixture

The configuration options registered by oslo.messaging should not be
directly relied upon by users of the library, since those config option
names could change in future.

Add an API which allows API users to override specific configuration
options e.g.

    self.messaging_conf = self.useFixture(messaging.ConfFixture(cfg.CONF))
    self.messaging_conf.transport_driver = 'fake'

Change-Id: If0d837e1b86e3b04237fde522551cfb81505a543
This commit is contained in:
Mark McLoughlin
2013-08-13 12:46:36 +01:00
parent 5aa7c37144
commit fbe3192d9a
7 changed files with 106 additions and 22 deletions

View File

@@ -17,6 +17,7 @@ Contents
notifier
serializer
exceptions
conffixture
Release Notes
=============