DescriptionAllow dummy environs to use zookeeper state
As in python, we don't want to have to bring up and tear down a zookeeper
server for every test we run against a dummy environment, so this CL
provides a mechanism for sharing a single zookeeper across multiple tests
against "different" environments.
This is done with a SetZookeeper func in the dummy package, which allows
the environ's StateInfo method to return a *state.Info pointing at that
zookeeper. Assuming the "zookeeper" config setting is set, and "isBroken"
is not, Bootstrap will initialize state and Reset will clear it; when
"zookeeper" is set to false, it should act entirely as before.
https://code.launchpad.net/~fwereade/juju/go-dummy-environ-state/+merge/107795
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 4
Patch Set 2 : Allow dummy environs to use zookeeper state #Patch Set 3 : Allow dummy environs to use zookeeper state #
Total comments: 7
Patch Set 4 : Allow dummy environs to use zookeeper state #
MessagesTotal messages: 8
|