[Openstack] fake_flags + common breakout

Eric Windisch eric at cloudscaling.com
Fri May 4 15:53:04 UTC 2012


Russell,

FYI, with the flags patch, it is no longer possible to set rpc-implementation dependent flags in fake_flags.

Even Rabbit has a flag in there (fake_rabbit), but Rabbit flags are currently global, so it works. That won't be true for long… We're going to have to fix this.

One option is to initialize the RPC layer from fake_flags.py and then set the options.

Another option, for now, might just be to push this problem into the implementations and have a global "testing" flag that is implementation/backend independent. This is uglier on the implementation/driver side, but cleaner on the unit tests.  This is basically what 'fake_rabbit' is now, anyway.

Thoughts?  

--  
Eric Windisch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120504/6b021c24/attachment.html>


More information about the Openstack mailing list