On 9 March 2016 at 20:31, Tom Barber <t...@analytical-labs.com> wrote: > Morning all > > I'm trying to test for charm reconfiguration if the leader goes AWOL.
I put the role of the unit in its workload status, so it is easy for operators to see which unit is master. And this also makes it easy for tests to tell. > Adam suggested that I watch the status waiting for the next leader election > hook the wait on that and then check my service configs. You are best of waiting for all the hooks to complete and a steady state, not just leader elected (since things will still be in flux when that hook fires, such as the leader-settings-changed hooks it will probably trigger and the relation changes those hooks will likely trigger). Use the juju-wait plugin, and maybe add support to https://bugs.launchpad.net/juju-core/+bug/1488777 to get this into core. -- Stuart Bishop <stuart.bis...@canonical.com> -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju